43 #include "structures.h" 49 #define PAGE_SIZE 4096 56 void dumpMmap(uint32_t* mmap_ptr, uint32_t len);
unsigned int base
Base address.
Definition: gdt.h:97
Page Directory structure Pointing to short-descriptor page table.
Definition: armv7/MAL/include/structures.h:51
void initMmu()
Initializes the MMU, creating the kernel's page directory and switching to it.
Definition: x86_multiboot/boot/mmu.c:311
void initFreePageList(uintptr_t base, uintptr_t length)
Definition: x86_multiboot/boot/mmu.c:185
void dumpMmap(uint32_t *mmap_ptr, uint32_t len)
Despite its unexplicit name, this function initializes the physical memory, preparing the page alloca...
Definition: x86_multiboot/boot/mmu.c:244
uintptr_t vaddr
Definition: armv7/MAL/include/maldefines.h:59
uint32_t * allocPage()
Unsafe page allocator. Allocated a page.
Definition: x86_multiboot/boot/mmu.c:214
void mapPageWrapper(page_directory_t *dir, uint32_t paddr, uint32_t vaddr, uint8_t user)
Definition: x86_multiboot/boot/mmu.c:166
void freePage(uint32_t *page)
Frees a page in a really unsafe way.
Definition: x86_multiboot/boot/mmu.c:230
uint32_t * firstFreePage
First free available page.
Definition: x86_multiboot/boot/mmu.c:55
uintptr_t page
Definition: armv7/MAL/include/maldefines.h:53