PatchworkOS
Loading...
Searching...
No Matches
mem.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdint.h>
4
5#include <boot/boot_info.h>
7
22#define MEM_BASIC_ALLOCATOR_MIN_PAGES 8192
23
29#define MEM_BASIC_ALLOCATOR_RESERVE_PERCENTAGE 5
30
36EFI_STATUS mem_init(void);
37
45
52
68
EFI_STATUS mem_map_init(boot_memory_map_t *map)
Initialize and load the memory map provided by the UEFI firmware.
Definition mem.c:64
void mem_page_table_init(page_table_t *table, boot_memory_map_t *map, boot_gop_t *gop, boot_kernel_t *kernel)
Initializes a page table for use by the kernel.
Definition mem.c:125
void mem_map_deinit(boot_memory_map_t *map)
Deinitializes the memory map and frees any allocated resources.
Definition mem.c:83
EFI_STATUS mem_init(void)
Initializes the basic memory allocator.
Definition mem.c:22
boot_gop_t * gop
Definition mem.c:18
boot_memory_map_t * map
Definition mem.c:19
A page table structure.