2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
5 GetBootInfo() function.
7 #include "bootloader_intern.h"
8 #include <proto/bootloader.h>
9 #include <proto/utility.h>
10 #include <aros/debug.h>
12 /*****************************************************************************
15 AROS_LH1(APTR
, GetBootInfo
,
18 AROS_LHA(ULONG
, infoType
, D0
),
21 struct BootLoaderBase
*, BootLoaderBase
, 1, Bootloader
)
24 Return information from the bootloader
27 infoType - The type of information requestes
30 Pointer to resource or NULL if failed
42 *****************************************************************************/
49 if (BootLoaderBase
->Flags
& MB_FLAGS_GFX
)
50 return (APTR
)&(BootLoaderBase
->Vesa
);
53 if (BootLoaderBase
->Flags
& MB_FLAGS_CMDLINE
)
54 return (APTR
)&(BootLoaderBase
->Args
);
57 if (BootLoaderBase
->Flags
& MB_FLAGS_DRIVES
)
58 return (APTR
)&(BootLoaderBase
->DriveInfo
);
61 bug("[BootLdr] GetBootInfo: Unknown info requested\n");