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 |
} |
} |
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 |
} |
} |