Page fault handling fix.

Factored out mapping of the physical page as the final generic code
after all fault-specific handling is done.

Fixed the error that zero page didn't have an owner (devzero).

Fixed the error that struct dirent did not have the record length
field as u16 as expected by userspace.
This commit is contained in:
Bahadir Balban
2008-04-14 00:09:57 +01:00
parent 7f815dd2dd
commit d6d97876bb
6 changed files with 72 additions and 83 deletions

View File

@@ -14,7 +14,7 @@
#include <arch/mm.h>
#include <lib/spinlock.h>
#define DEBUG_FAULT_HANDLING
// #define DEBUG_FAULT_HANDLING
#ifdef DEBUG_FAULT_HANDLING
#define dprintf(...) printf(__VA_ARGS__)
#else