diff options
author | Marvin Borner | 2020-06-01 00:48:12 +0200 |
---|---|---|
committer | Marvin Borner | 2020-06-01 00:48:12 +0200 |
commit | 448aa86d5aea864ac103808981a433e4f0816276 (patch) | |
tree | 428fb678eccc71ce7d22c78be1697682f56abfd4 /src/kernel/memory/paging.h | |
parent | 5d276b98a2bbd4b69402559ced60f43af268f77b (diff) |
Aaaah so many bugs
Diffstat (limited to 'src/kernel/memory/paging.h')
-rw-r--r-- | src/kernel/memory/paging.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kernel/memory/paging.h b/src/kernel/memory/paging.h index b7ea07a..1408d7c 100644 --- a/src/kernel/memory/paging.h +++ b/src/kernel/memory/paging.h @@ -25,7 +25,8 @@ #define PT_GLOBAL 1 << 8 #define PT_USED 1 << 9 -u32 page_directory[1024] __attribute__((aligned(4096))); +u32 *page_directory[1024] __attribute__((aligned(4096))); +u32 page_tables[1024][1024] __attribute__((aligned(4096))); int paging_enabled; void paging_install(); @@ -37,6 +38,7 @@ void paging_remove_directory(u32 **dir); void paging_switch_directory(u32 **dir); void paging_map(u32 phy, u32 virt, u16 flags); +void paging_map_user(u32 phy, u32 virt); u32 paging_get_phys(u32 virt); u16 paging_get_flags(u32 virt); u32 paging_get_used_pages(); |