The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
reservations.h
Go to the documentation of this file.
1#pragma once
2
3#include "common/stdint.h"
5
6/**
7 * reserve the stage2 bootloader memory region.
8 */
9void memory_reserve_stage2(void);
10
11/**
12 * reserve the kernel memory region (kernel_start to kernel_end).
13 */
14void memory_reserve_kernel(void);
15
16/**
17 * reserve the PMM bitmap memory region.
18 * called by the PMM once it determines where to place its bitmap.
19 * @param start first byte of the bitmap (inclusive).
20 * @param end first byte past the bitmap (exclusive).
21 */
23
24/**
25 * reserve the kernel heap memory region.
26 * called by heap_init() once it determines the heap placement.
27 * @param start first byte of the heap (inclusive).
28 * @param end first byte past the heap (exclusive).
29 */
31/**
32 * reserve a root filesystem image that the bootloader loaded into RAM.
33 * nothing is reserved if end <= start.
34 * @param start first byte of the image (inclusive).
35 * @param end first byte past the image (exclusive).
36 */
uintptr_t phys_addr_t
physical addresses and the conversion between physical and virtual.
Definition phys.h:18
void memory_reserve_pmm_bitmap(phys_addr_t start, phys_addr_t end)
reserve the PMM bitmap memory region.
Definition reservations.c:18
void memory_reserve_kernel(void)
reserve the kernel memory region (kernel_start to kernel_end).
Definition reservations.c:12
void memory_reserve_initrd(phys_addr_t start, phys_addr_t end)
reserve a root filesystem image that the bootloader loaded into RAM.
Definition reservations.c:28
void memory_reserve_stage2(void)
reserve the stage2 bootloader memory region.
Definition reservations.c:7
void memory_reserve_heap(phys_addr_t start, phys_addr_t end)
reserve the kernel heap memory region.
Definition reservations.c:23