The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
multiboot2.h File Reference

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.

Detailed Description

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.

Macro Definition Documentation

◆ MULTIBOOT2_BOOT_MAGIC

#define MULTIBOOT2_BOOT_MAGIC   0x36D76289u

Function Documentation

◆ multiboot2_read()

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.

Parameters
info_physthe physical address the bootloader gave in EBX.
bootthe boot_info_t to fill in (zeroed by the caller).
Returns
false if the information is not in the direct map or is not valid.