Changeset 1134 for Whitix

Show
Ignore:
Timestamp:
10/14/08 19:38:47 (1 month ago)
Author:
mwhitworth
Message:

Add PAGE_USER or to MMapDo parameter when called from SysMemoryMap.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/branches/keobject/memory/mmap.c

    r1079 r1134  
    159159} 
    160160 
    161 int MmapHandleFault(struct Process* process,DWORD address,int error) 
     161int MmapHandleFault(struct Process* process, DWORD address, int error) 
    162162{ 
    163163        struct VMArea* area; 
     
    588588        struct File* file=NULL; 
    589589        struct VNode* vNode=NULL; 
    590  
     590         
    591591        if (fd != -1 && !(file=FileGet(fd))) 
    592592                return 0; 
     
    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), 
     598        PAGE_ALIGN_UP(length), protection | PAGE_USER, offset, flags, NULL); 
    598599} 
    599600