|
ginnOS
The reference: libc, the libraries and the kernel
|
information the bootloader hands to the kernel. More...
#include </home/runner/work/ginnOS-docs/ginnOS-docs/ginnOS/src/common/boot/boot_info.h>
information the bootloader hands to the kernel.
the layout up to and including memory_map is shared byte-for-byte with the stage2 assembly that fills it in (see src/bootloader/stage2/main.asm), so those fields must not be reordered. anything a boot protocol cannot supply is left zero: framebuffer_addr == 0 means "no framebuffer", cmdline_addr == 0 means "no command line".
stage2 fills in the fields up to and including the framebuffer pixel format. the kernel copies only that part into its own boot_info_t (kernel.c), so the fields after it are zero on a stage2 boot. a multiboot 2 boot fills in all fields (arch/x86/boot/multiboot2.c).
| uint8_t boot_info_t::boot_drive |
| uint8_t boot_info_t::_reserved[3] |
| memory_map_t boot_info_t::memory_map |
| uint32_t boot_info_t::framebuffer_addr |
| uint32_t boot_info_t::framebuffer_width |
| uint32_t boot_info_t::framebuffer_height |
| uint32_t boot_info_t::cmdline_addr |
| uint32_t boot_info_t::framebuffer_pitch |
| uint8_t boot_info_t::framebuffer_bpp |
| uint8_t boot_info_t::framebuffer_type |
| uint8_t boot_info_t::framebuffer_red_size |
| uint8_t boot_info_t::framebuffer_red_shift |
| uint8_t boot_info_t::framebuffer_green_size |
| uint8_t boot_info_t::framebuffer_green_shift |
| uint8_t boot_info_t::framebuffer_blue_size |
| uint8_t boot_info_t::framebuffer_blue_shift |
| uint8_t boot_info_t::_fb_pad[2] |
| uint32_t boot_info_t::boot_protocol |
| uint32_t boot_info_t::initrd_start |
| uint32_t boot_info_t::initrd_end |
| uint32_t boot_info_t::rsdp_size |
| uint8_t boot_info_t::rsdp[36] |
| uint32_t boot_info_t::framebuffer_addr_high |