bootinfo.inc

StupidOS Boot protocol constants and structs

Summary

Macros

BOOT_HEADER_MAGIC

BOOT_HEADER_MAGIC = 0x44505453

BOOT_BOOTLOADER_MAGIC

BOOT_BOOTLOADER_MAGIC = 0x53545044

Structs

BootHeader

struc BootHeader
.magicMust be BOOT_HEADER_MAGIC
.load_end_addrTODO
.bss_end_addrTODO
.entry_addrKernel entry point

BootMMapEntry

struc BootMMapEntry

Memory map entry

.baseTODO
.lengthTODO

Macros

BOOT_MAX_MMAP_ENTRY

BOOT_MAX_MMAP_ENTRY = 16

Structs

BootInfoRange

struc BootInfoRange

BootInfo

struc BootInfo

StupidOS boot protocol structure

.mmapFree memory map
.kernel_startKernel start address
.kernel_sizeKernel size in bytes
.high_memFree memory under 1MB
.low_memFree memory upper 1MB
BOOT_HEADER_MAGIC = 0x44505453
BOOT_BOOTLOADER_MAGIC = 0x53545044
struc BootHeader
struc BootMMapEntry
Memory map entry
BOOT_MAX_MMAP_ENTRY = 16
struc BootInfoRange
struc BootInfo
StupidOS boot protocol structure
Close