diff options
author | Marvin Borner | 2020-05-31 20:26:40 +0200 |
---|---|---|
committer | Marvin Borner | 2020-05-31 20:26:40 +0200 |
commit | eaadde5453e33af6826bb03488991aab0297d3dd (patch) | |
tree | f52d06c0841b664abcab547481dca41f4cfb30ff /src/kernel/memory/paging.h | |
parent | 45a5ecc72d8e700614a0751f0e7ec68199885b77 (diff) |
OMG
Diffstat (limited to 'src/kernel/memory/paging.h')
-rw-r--r-- | src/kernel/memory/paging.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/memory/paging.h b/src/kernel/memory/paging.h index 3d3b176..b7ea07a 100644 --- a/src/kernel/memory/paging.h +++ b/src/kernel/memory/paging.h @@ -25,8 +25,7 @@ #define PT_GLOBAL 1 << 8 #define PT_USED 1 << 9 -u32 **current_page_directory; -u32 kernel_page_directory[1024] __attribute__((aligned(4096))); +u32 page_directory[1024] __attribute__((aligned(4096))); int paging_enabled; void paging_install(); @@ -34,6 +33,7 @@ void paging_enable(); void paging_disable(); u32 **paging_make_directory(); +void paging_remove_directory(u32 **dir); void paging_switch_directory(u32 **dir); void paging_map(u32 phy, u32 virt, u16 flags); |