Implemented C x86 paging, removed C++ code

This commit is contained in:
2021-04-10 20:43:01 -05:00
parent 6a4f777340
commit 68166e58ca
8 changed files with 124 additions and 624 deletions

View File

@@ -1,5 +1,6 @@
#pragma once
#include "pageallocator.h"
#include "types/physaddr.h"
/**
@@ -9,7 +10,7 @@
*
* @return physaddr_t
*/
physaddr_t create_address_space();
physaddr_t create_address_space(struct page_stack_t *page_stack);
/**
* @brief Load an existing top-level page table
@@ -26,7 +27,7 @@ void load_address_space(physaddr_t table);
* @param flags
* @return int
*/
int map_page(void *page, physaddr_t frame, int flags);
int map_page(struct page_stack_t *page_stack, void *page, physaddr_t frame, int flags);
/**
* @brief Unmaps a single page, returning the physical address of the frame it