Changeset 1097 for Whitix

Show
Ignore:
Timestamp:
10/10/08 17:09:22 (1 month ago)
Author:
mwhitworth
Message:

Add PAGE_USER or to MMapDo. We can assume SysMemoryMap is called from userspace.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/trunk/memory/mmap.c

    r882 r1097  
    595595                vNode=file->vNode; 
    596596                         
    597         return MMapDo(current, vNode, PAGE_ALIGN(address),PAGE_ALIGN_UP(length),protection,offset,flags, NULL); 
     597        return MMapDo(current, vNode, PAGE_ALIGN(address),PAGE_ALIGN_UP(length), 
     598                protection | PAGE_USER, offset, flags, NULL); 
    598599} 
    599600