|
Memory Fields |
u32 | mem_lower () const |
| Gets the amount of 'lower' memory in the system, in kilobytes.
|
u32 | mem_upper () const |
| Gets the amount of 'upper' memory available in the system, in kilobytes.
|
The Boot Device |
The 'boot device' value is a bitmap of BIOS disk devices and partitions from which the kernel was invoked. Not sure how this is mapped since the spec is vague about what a 'BIOS' is and how bytes are layed out in 32-bit words.
|
u32 | boot_device () const |
| Gets a bitmap describing whence the kernel was invoked.
|
The Command Line |
const char * | cmdline () const |
| Gets the command line used to invoke the load module.
|
The System Memory Map |
Valid only if m_flags has the kFLAG_MMAP_FIELDS_VALID bit set.
|
MemoryMapDescriptor * | memoryMapBase () |
| Gets the address of the first memory map descriptor supplied by the multiboot loader.
|
u32 | memoryMapLength () |
| Gets the number of entries in the memory map supplied by the multiboot loader.
|
The Boot Loader Name |
const char * | boot_loader_name () const |
| Gets the name of the program used to invoke the load module.
|
Public Attributes |
u32 | m_flags |
|
Valid only if m_flags has the kFLAG_MODULES_FIELDS_VALID bit set.
|
u32 | m_mods_count |
| The number of additional modules loaded with the kernel image.
|
u32 | m_mods_addr |
| The physical address of the first module desriptor.
|
|
u32 | m_syms [4] |
|
Valid only if m_flags has the kFLAG_DRIVES_FIELDS_VALID bit set.
|
u32 | m_drives_length |
u32 | m_drives_addr |
|
Valid only if m_flags has the kFLAG_CONFIG_FIELDS_VALID bit set.
|
u32 | m_config_table |
|
Valid only if m_flags has the kFLAG_APM_FIELDS_VALID bit set.
|
u32 | m_apm_table |
|
Valid only if m_flags has the kFLAG_GRAPHICS_FIELDS_VALID bit set.
|
u32 | m_vbe_control_info |
u32 | m_vbe_mode_info |
u32 | m_vbe_mode |
u16 | m_vbe_interface_seg |
u16 | m_vbe_interface_of |
u16 | m_vbe_interface_len |
Static Public Attributes |
static const u32 | kMAGIC = 0x2BADB002 |
static const u32 | kFLAG_MEM_FIELDS_VALID = (1 << 0) |
static const u32 | kFLAG_BOOT_DEVICE_FIELDS_VALID = (1 << 1) |
static const u32 | kFLAG_CMDLINE_FIELDS_VALID = (1 << 2) |
static const u32 | kFLAG_MODULES_FIELDS_VALID = (1 << 3) |
static const u32 | kFLAG_AOUT_FIELDS_VALID = (1 << 4) |
static const u32 | kFLAG_ELF_FIELDS_VALID = (1 << 5) |
static const u32 | kFLAG_MMAP_FIELDS_VALID = (1 << 6) |
static const u32 | kFLAG_DRIVES_FIELDS_VALID = (1 << 7) |
static const u32 | kFLAG_CONFIG_FIELDS_VALID = (1 << 8) |
static const u32 | kFLAG_LOADER_NAME_FIELDS_VALID = (1 << 9) |
static const u32 | kFLAG_APM_FIELDS_VALID = (1 << 10) |
static const u32 | kFLAG_GRAPHICS_FIELDS_VALID = (1 << 11) |