From e356371f09df87ebab2d7e3d816de1147768dfa9 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 2 Mar 2015 23:02:59 +0100 Subject: Change VFS interface : handles no longer visible to underlying FS. --- src/kernel/user/process.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/kernel/user/process.c') diff --git a/src/kernel/user/process.c b/src/kernel/user/process.c index 4dea882..3f8da08 100644 --- a/src/kernel/user/process.c +++ b/src/kernel/user/process.c @@ -290,7 +290,7 @@ bool munmap(process_t *proc, void* addr) { if (ent & PTE_PRESENT) { if ((ent & PTE_DIRTY) && (r->mode & MM_WRITE) && r->file != 0) { - file_commit_page(r->file, it - r->addr + r->file_offset, proc->last_ran); + // TODO COMMIT PAGE!! } pd_unmap_page(it); if (r->file != 0) { @@ -343,7 +343,8 @@ static void proc_usermem_pf(void* p, registers_t *regs, void* addr) { if (r->file == 0) { frame = frame_alloc(1); } else { - frame = file_get_page(r->file, addr - r->addr + r->file_offset); + PANIC("Not implemented mmap (AWFUL TODO)"); + // Here we must get the page from the cache } if (frame == 0) { free_some_memory(); -- cgit v1.2.3