#include "multiboot.h"
#include "structures.h"
#include <stdint.h>
Go to the source code of this file.
◆ PAGE_SIZE
Defines the size of a Page.
◆ allocPage()
Unsafe page allocator. Allocated a page.
- Returns
- Virtual address to a free page.
◆ dumpMmap()
void dumpMmap |
( |
uint32_t * |
mmap_ptr, |
|
|
uint32_t |
len |
|
) |
| |
Despite its unexplicit name, this function initializes the physical memory, preparing the page allocator as well.
- Parameters
-
mmap_ptr | Pointer to a multiboot-compliant memory map |
len | Length of the memory map structure |
◆ freePage()
void freePage |
( |
uint32_t * |
page | ) |
|
Frees a page in a really unsafe way.
- Parameters
-
◆ initFreePageList()
void initFreePageList |
( |
uintptr_t |
base, |
|
|
uintptr_t |
length |
|
) |
| |
◆ initMmu()
Initializes the MMU, creating the kernel's page directory and switching to it.
◆ mapPageWrapper()
void mapPageWrapper |
( |
page_directory_t * |
dir, |
|
|
uint32_t |
paddr, |
|
|
uint32_t |
vaddr, |
|
|
uint8_t |
user |
|
) |
| |
◆ firstFreePage
First free available page.