Changeset 1079 for Whitix/branches/keobject/memory/mmap.c
- Timestamp:
- 10/03/08 12:54:00 (3 months ago)
- Files:
-
- 1 modified
-
Whitix/branches/keobject/memory/mmap.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/branches/keobject/memory/mmap.c
r882 r1079 84 84 ret=area->vNode->fileOps->mMap(area->vNode, address, offset); 85 85 else 86 ret=FileGenericReadPage(address, area->vNode,offset);86 ret=FileGenericReadPage(address, area->vNode, offset); 87 87 88 88 if (ret) … … 165 165 address=PAGE_ALIGN(address); 166 166 167 // KePrint("%s: %d: MMapHandleFault(%#X, %d, %d, %d)\n", current->name, current->pid, address, error, VM_WRITE, VM_USER);168 169 167 /* A null pointer has been deferenced */ 170 168 if (!process || address < PAGE_SIZE) 171 169 return -EFAULT; 172 170 171 // KePrint("%s: %d: MMapHandleFault(%#X, %d, %d, %d)\n", current->name, current->pid, address, error, VM_WRITE, VM_USER); 172 173 173 area=VmLookupAddress(process,address); 174 174 175 175 /* Area of memory not currently mapped? */ 176 176 if (!area)