The manual
ginnOS
The reference: libc, the libraries and the kernel
Toggle main menu visibility
Loading...
Searching...
No Matches
multiboot2.h
Go to the documentation of this file.
1
#pragma once
2
3
/**
4
* @file multiboot2.h
5
* @brief the multiboot 2 boot information, read into a boot_info_t.
6
*
7
* a multiboot 2 bootloader (limine, grub) gives the kernel a list of tags.
8
* the kernel reads the tags it uses into its boot_info_t before it uses any
9
* memory, because the bootloader puts the tags in memory that the kernel
10
* later gives to the PMM.
11
*/
12
13
#include "
common/boot/boot_info.h
"
14
#include "
common/stdint.h
"
15
16
/* EAX at the kernel entry when a multiboot 2 bootloader starts the kernel */
17
#define MULTIBOOT2_BOOT_MAGIC 0x36D76289u
18
19
/**
20
* read the multiboot 2 information into a boot_info_t. fields without a tag
21
* stay zero. the command line is copied into kernel memory.
22
* @param info_phys the physical address the bootloader gave in EBX.
23
* @param boot the boot_info_t to fill in (zeroed by the caller).
24
* @return false if the information is not in the direct map or is not
25
* valid.
26
*/
27
bool
multiboot2_read
(
uintptr_t
info_phys,
boot_info_t
*boot);
boot_info.h
stdint.h
uintptr_t
__UINTPTR_TYPE__ uintptr_t
Definition
stdint.h:19
multiboot2_read
bool multiboot2_read(uintptr_t info_phys, boot_info_t *boot)
read the multiboot 2 information into a boot_info_t.
Definition
multiboot2.c:165
boot_info_t
information the bootloader hands to the kernel.
Definition
boot_info.h:21
src
arch
x86
boot
multiboot2.h
Generated by
1.18.0