diff options
Diffstat (limited to 'src/kernel/user/process.c')
-rw-r--r-- | src/kernel/user/process.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/kernel/user/process.c b/src/kernel/user/process.c index b8b0c23..0f4892d 100644 --- a/src/kernel/user/process.c +++ b/src/kernel/user/process.c @@ -114,6 +114,10 @@ bool start_process(process_t *p, void* entry) { return true; } +pagedir_t *proc_pagedir(process_t *p) { + return p->pd; +} + // ================================== // // MANAGING FILESYSTEMS FOR PROCESSES // // ================================== // @@ -224,6 +228,10 @@ bool munmap(process_t *proc, void* addr) { } } + // TODO : write modified pages back to file! + + if (r->file != 0) unref_file(r->file); + free(r); return true; |