|
ginnOS
The reference: libc, the libraries and the kernel
|
the multiboot 2 boot information, read into a boot_info_t. More...
Go to the source code of this file.
Macros | |
| #define | MULTIBOOT2_BOOT_MAGIC 0x36D76289u |
Functions | |
| bool | multiboot2_read (uintptr_t info_phys, boot_info_t *boot) |
| read the multiboot 2 information into a boot_info_t. | |
the multiboot 2 boot information, read into a boot_info_t.
a multiboot 2 bootloader (limine, grub) gives the kernel a list of tags. the kernel reads the tags it uses into its boot_info_t before it uses any memory, because the bootloader puts the tags in memory that the kernel later gives to the PMM.
| #define MULTIBOOT2_BOOT_MAGIC 0x36D76289u |
| bool multiboot2_read | ( | uintptr_t | info_phys, |
| boot_info_t * | boot ) |
read the multiboot 2 information into a boot_info_t.
fields without a tag stay zero. the command line is copied into kernel memory.
| info_phys | the physical address the bootloader gave in EBX. |
| boot | the boot_info_t to fill in (zeroed by the caller). |