mirror of
https://github.com/gbowne1/ClassicOS.git
synced 2025-11-16 22:35:26 -08:00
Update paging.c
Fixed page table entry so it doesnt clobber kernel
This commit is contained in:
@@ -3,9 +3,9 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
page_directory_entry_t *page_directory = (page_directory_entry_t *)0x100000;
|
page_directory_entry_t *page_directory = (page_directory_entry_t *)0x200000;
|
||||||
page_table_entry_t *page_table = (page_table_entry_t *)0x101000;
|
page_table_entry_t *page_table = (page_table_entry_t *)0x201000;
|
||||||
page_table_entry_t *heap_page_table = (page_table_entry_t *)0x102000; // Located right after the page directory
|
page_table_entry_t *heap_page_table = (page_table_entry_t *)0x202000;
|
||||||
|
|
||||||
// Helper function to set up the page directory entry
|
// Helper function to set up the page directory entry
|
||||||
void set_page_directory(page_directory_entry_t *dir) {
|
void set_page_directory(page_directory_entry_t *dir) {
|
||||||
|
|||||||
Reference in New Issue
Block a user