Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm In uvm_map_pageable(), pass VM_PROT_NONE as access t...
details: https://anonhg.NetBSD.org/src/rev/35dc00880022
branches: trunk
changeset: 473227:35dc00880022
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed May 26 00:36:53 1999 +0000
description:
In uvm_map_pageable(), pass VM_PROT_NONE as access type to uvm_fault_wire()
for now. XXX This needs to be reexamined.
diffstat:
sys/uvm/uvm_map.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r c4bc9e5a4364 -r 35dc00880022 sys/uvm/uvm_map.c
--- a/sys/uvm/uvm_map.c Wed May 26 00:33:52 1999 +0000
+++ b/sys/uvm/uvm_map.c Wed May 26 00:36:53 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_map.c,v 1.43 1999/05/25 20:30:09 thorpej Exp $ */
+/* $NetBSD: uvm_map.c,v 1.44 1999/05/26 00:36:53 thorpej Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -2164,7 +2164,14 @@
if (rv) {
entry->wired_count--;
} else if (entry->wired_count == 1) {
- rv = uvm_fault_wire(map, entry->start, entry->end);
+ /*
+ * XXXTHORPEJ: VM_PROT_NONE. What about COW
+ * entries? Should we enter with max_protection
+ * so that we're guaranteed not even mod/ref
+ * emulation faults will occur?
+ */
+ rv = uvm_fault_wire(map, entry->start, entry->end,
+ VM_PROT_NONE);
if (rv) {
failed = entry->start;
entry->wired_count--;
Home |
Main Index |
Thread Index |
Old Index