/[rtmk]/rtmk/vm-fault.c
ViewVC logotype

Diff of /rtmk/vm-fault.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by jrydberg, Wed Feb 6 19:57:00 2002 UTC revision 1.4 by jrydberg, Sun Feb 24 23:09:48 2002 UTC
# Line 130  vm_fault (struct vm_map *map, vm_offset_ Line 130  vm_fault (struct vm_map *map, vm_offset_
130    
131        /* If we found a page and we are doing a read access we lower        /* If we found a page and we are doing a read access we lower
132           the protection for the page to read-only.  */           the protection for the page to read-only.  */
133          
134        else if (fault_type & VM_PROT_READ)        else if (fault_type & VM_PROT_READ)
135          prot = VM_PROT_READ;          prot = VM_PROT_READ;
136      }      }
# Line 138  vm_fault (struct vm_map *map, vm_offset_ Line 138  vm_fault (struct vm_map *map, vm_offset_
138    
139    /* If we found a page - see if someone else wants it aswell    /* If we found a page - see if someone else wants it aswell
140       (when we are a original object for a copy-on-write object).  */       (when we are a original object for a copy-on-write object).  */
   
141    else    else
142      {      {
143          /* Check so that we do not exceed protection.  */
144          if ((fault_type & prot) != fault_type)
145            return KERN_PROTECTION_FAILURE;
146    
147        trace_printf ("??? implement found page");        trace_printf ("??? implement found page");
148        /* ??? implement */        /* ??? implement */
149      }      }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26