summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_fault.c
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1997-01-16 04:16:22 +0000
committerdyson <dyson@FreeBSD.org>1997-01-16 04:16:22 +0000
commit52f682b5823b83f1e906f18c5e969ef07a70b8f9 (patch)
tree0ad89c8435b3bd8b781b683d36913c0b84a63ac8 /sys/vm/vm_fault.c
parentb3f48f1d0e3959ea19934a3a2734680d5c86d96b (diff)
downloadFreeBSD-src-52f682b5823b83f1e906f18c5e969ef07a70b8f9.zip
FreeBSD-src-52f682b5823b83f1e906f18c5e969ef07a70b8f9.tar.gz
Change the map entry flags from bitfields to bitmasks. Allows
for some code simplification.
Diffstat (limited to 'sys/vm/vm_fault.c')
-rw-r--r--sys/vm/vm_fault.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c
index 468a983..74fb29a 100644
--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -197,7 +197,7 @@ RetryFault:;
return (result);
}
- if (entry->nofault) {
+ if (entry->eflags & MAP_ENTRY_NOFAULT) {
panic("vm_fault: fault on nofault entry, addr: %lx",
vaddr);
}
@@ -209,7 +209,7 @@ RetryFault:;
* to COW .text. We simply keep .text from ever being COW'ed
* and take the heat that one cannot debug wired .text sections.
*/
- if ((change_wiring == VM_FAULT_USER_WIRE) && entry->needs_copy) {
+ if ((change_wiring == VM_FAULT_USER_WIRE) && (entry->eflags & MAP_ENTRY_NEEDS_COPY)) {
if(entry->protection & VM_PROT_WRITE) {
int tresult;
vm_map_lookup_done(map, entry);
OpenPOWER on IntegriCloud