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

@@ -104,9 +104,9 @@ void print_dirents(char *path, void *buf, int cnt)
int lsdir(char *path)
{
int fd;
struct dirent dents[DENTS_TOTAL];
int bytes;
int fd;
memset(dents, 0, sizeof(struct dirent) * DENTS_TOTAL);