Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm A page fault on a non-pageable map is always fatal.
details: https://anonhg.NetBSD.org/src/rev/e74ff9f63328
branches: trunk
changeset: 473425:e74ff9f63328
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Jun 02 23:26:21 1999 +0000
description:
A page fault on a non-pageable map is always fatal.
diffstat:
sys/uvm/uvm_fault.c | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diffs (27 lines):
diff -r 4c0df5d58fa9 -r e74ff9f63328 sys/uvm/uvm_fault.c
--- a/sys/uvm/uvm_fault.c Wed Jun 02 23:24:54 1999 +0000
+++ b/sys/uvm/uvm_fault.c Wed Jun 02 23:26:21 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_fault.c,v 1.31 1999/05/28 20:49:51 thorpej Exp $ */
+/* $NetBSD: uvm_fault.c,v 1.32 1999/06/02 23:26:21 thorpej Exp $ */
/*
*
@@ -616,6 +616,17 @@
}
/*
+ * if the map is not a pageable map, a page fault always fails.
+ */
+
+ if ((ufi.map->flags & VM_MAP_PAGEABLE) == 0) {
+ UVMHIST_LOG(maphist,
+ "<- map %p not pageable", ufi.map, 0, 0, 0);
+ uvmfault_unlockmaps(&ufi, FALSE);
+ return (KERN_FAILURE);
+ }
+
+ /*
* "enter_prot" is the protection we want to enter the page in at.
* for certain pages (e.g. copy-on-write pages) this protection can
* be more strict than ufi.entry->protection. "wired" means either
Home |
Main Index |
Thread Index |
Old Index