diff options
-rw-r--r-- | src/kernel/memory/paging.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/kernel/memory/paging.c b/src/kernel/memory/paging.c index aea717a..fd5ae3b 100644 --- a/src/kernel/memory/paging.c +++ b/src/kernel/memory/paging.c @@ -81,6 +81,13 @@ u32 **paging_make_directory() return dir; } +void paging_remove_directory(u32 **dir) +{ + // TODO: Fix freeing of directory by calculating aligned offset + free(dir[0]); + free(dir); +} + void paging_disable() { u32 cr0; |