2 Copyright © 1995-2009, The AROS Development Team. All rights reserved.
5 GetBootInfo() function.
9 #include "bootloader_intern.h"
10 #include <proto/bootloader.h>
11 #include <proto/utility.h>
12 #include <aros/debug.h>
13 #include <aros/bootloader.h>
15 /*****************************************************************************
18 AROS_LH1(APTR
, GetBootInfo
,
21 AROS_LHA(ULONG
, infoType
, D0
),
24 struct BootLoaderBase
*, BootLoaderBase
, 1, Bootloader
)
27 Return information from the bootloader
30 infoType - The type of information requestes
33 Pointer to resource or NULL if failed
45 *****************************************************************************/
52 return BootLoaderBase
->LdrName
;
54 D(bug("[BootLdr] BL_ARGS requested\n"));
55 if (BootLoaderBase
->Flags
& BL_FLAGS_CMDLINE
)
56 return (APTR
)&(BootLoaderBase
->Args
);
59 D(bug("[BootLdr] GetBootInfo: Unknown info requested\n"));