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/multiboot.h>
11 #include <aros/debug.h>
13 /*****************************************************************************
16 AROS_LH1(APTR
, GetBootInfo
,
19 AROS_LHA(ULONG
, infoType
, D0
),
22 struct BootLoaderBase
*, BootLoaderBase
, 1, Bootloader
)
25 Return information from the bootloader
28 infoType - The type of information requestes
31 Pointer to resource or NULL if failed
43 *****************************************************************************/
50 if (BootLoaderBase
->Flags
& MB_FLAGS_GFX
)
51 return (APTR
)&(BootLoaderBase
->Vesa
);
54 if (BootLoaderBase
->Flags
& MB_FLAGS_CMDLINE
)
55 return (APTR
)&(BootLoaderBase
->Args
);
58 if (BootLoaderBase
->Flags
& MB_FLAGS_DRIVES
)
59 return (APTR
)&(BootLoaderBase
->DriveInfo
);
62 bug("[BootLdr] GetBootInfo: Unknown info requested\n");