- Timestamp:
- 10/14/08 19:38:47 (1 month ago)
- Files:
-
- 1 modified
-
Whitix/branches/keobject/memory/mmap.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/branches/keobject/memory/mmap.c
r1079 r1134 159 159 } 160 160 161 int MmapHandleFault(struct Process* process, DWORD address,int error)161 int MmapHandleFault(struct Process* process, DWORD address, int error) 162 162 { 163 163 struct VMArea* area; … … 588 588 struct File* file=NULL; 589 589 struct VNode* vNode=NULL; 590 590 591 591 if (fd != -1 && !(file=FileGet(fd))) 592 592 return 0; … … 595 595 vNode=file->vNode; 596 596 597 return MMapDo(current, vNode, PAGE_ALIGN(address),PAGE_ALIGN_UP(length),protection,offset,flags, NULL); 597 return MMapDo(current, vNode, PAGE_ALIGN(address), 598 PAGE_ALIGN_UP(length), protection | PAGE_USER, offset, flags, NULL); 598 599 } 599 600
