The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
boot_info_t Struct Reference

information the bootloader hands to the kernel. More...

#include </home/runner/work/ginnOS-docs/ginnOS-docs/ginnOS/src/common/boot/boot_info.h>

Data Fields

uint8_t boot_drive
uint8_t _reserved [3]
memory_map_t memory_map
uint32_t framebuffer_addr
uint32_t framebuffer_width
uint32_t framebuffer_height
uint32_t cmdline_addr
uint32_t framebuffer_pitch
uint8_t framebuffer_bpp
uint8_t framebuffer_type
uint8_t framebuffer_red_size
uint8_t framebuffer_red_shift
uint8_t framebuffer_green_size
uint8_t framebuffer_green_shift
uint8_t framebuffer_blue_size
uint8_t framebuffer_blue_shift
uint8_t _fb_pad [2]
uint32_t boot_protocol
uint32_t initrd_start
uint32_t initrd_end
uint32_t rsdp_size
uint8_t rsdp [36]
uint32_t framebuffer_addr_high

Detailed Description

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).

Field Documentation

◆ boot_drive

uint8_t boot_info_t::boot_drive

◆ _reserved

uint8_t boot_info_t::_reserved[3]

◆ memory_map

memory_map_t boot_info_t::memory_map

◆ framebuffer_addr

uint32_t boot_info_t::framebuffer_addr

◆ framebuffer_width

uint32_t boot_info_t::framebuffer_width

◆ framebuffer_height

uint32_t boot_info_t::framebuffer_height

◆ cmdline_addr

uint32_t boot_info_t::cmdline_addr

◆ framebuffer_pitch

uint32_t boot_info_t::framebuffer_pitch

◆ framebuffer_bpp

uint8_t boot_info_t::framebuffer_bpp

◆ framebuffer_type

uint8_t boot_info_t::framebuffer_type

◆ framebuffer_red_size

uint8_t boot_info_t::framebuffer_red_size

◆ framebuffer_red_shift

uint8_t boot_info_t::framebuffer_red_shift

◆ framebuffer_green_size

uint8_t boot_info_t::framebuffer_green_size

◆ framebuffer_green_shift

uint8_t boot_info_t::framebuffer_green_shift

◆ framebuffer_blue_size

uint8_t boot_info_t::framebuffer_blue_size

◆ framebuffer_blue_shift

uint8_t boot_info_t::framebuffer_blue_shift

◆ _fb_pad

uint8_t boot_info_t::_fb_pad[2]

◆ boot_protocol

uint32_t boot_info_t::boot_protocol

◆ initrd_start

uint32_t boot_info_t::initrd_start

◆ initrd_end

uint32_t boot_info_t::initrd_end

◆ rsdp_size

uint32_t boot_info_t::rsdp_size

◆ rsdp

uint8_t boot_info_t::rsdp[36]

◆ framebuffer_addr_high

uint32_t boot_info_t::framebuffer_addr_high

The documentation for this struct was generated from the following file: