diff options
author | Alex Auvolat <alex.auvolat@ens.fr> | 2015-03-02 23:02:59 +0100 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ens.fr> | 2015-03-02 23:02:59 +0100 |
commit | e356371f09df87ebab2d7e3d816de1147768dfa9 (patch) | |
tree | 4932209fc8799bb63006c3ebb11b9a438ae34342 /src/kernel/user/process.c | |
parent | 969c8cacc50e8c39ddbc19e05f3f5b98c34bde01 (diff) | |
download | kogata-e356371f09df87ebab2d7e3d816de1147768dfa9.tar.gz kogata-e356371f09df87ebab2d7e3d816de1147768dfa9.zip |
Change VFS interface : handles no longer visible to underlying FS.
Diffstat (limited to 'src/kernel/user/process.c')
-rw-r--r-- | src/kernel/user/process.c | 5 |
1 files changed, 3 insertions, 2 deletions
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(); |