Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm VM_MAXUSER_ADDRESS can be undefined when compiling m...
details: https://anonhg.NetBSD.org/src/rev/e7da5803b7e9
branches: trunk
changeset: 997005:e7da5803b7e9
user: rin <rin%NetBSD.org@localhost>
date: Sun Feb 17 13:46:03 2019 +0000
description:
VM_MAXUSER_ADDRESS can be undefined when compiling module/coredump;
it varies between machines for evbppc (and possibly evbppc64).
diffstat:
sys/uvm/uvm_coredump.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 14a7fbb8860c -r e7da5803b7e9 sys/uvm/uvm_coredump.c
--- a/sys/uvm/uvm_coredump.c Sun Feb 17 13:21:55 2019 +0000
+++ b/sys/uvm/uvm_coredump.c Sun Feb 17 13:46:03 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_coredump.c,v 1.6 2014/01/07 07:59:03 dsl Exp $ */
+/* $NetBSD: uvm_coredump.c,v 1.7 2019/02/17 13:46:03 rin Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_coredump.c,v 1.6 2014/01/07 07:59:03 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_coredump.c,v 1.7 2019/02/17 13:46:03 rin Exp $");
/*
* uvm_coredump.c: glue functions for coredump
@@ -130,8 +130,10 @@
*/
KASSERT(!UVM_ET_ISSUBMAP(entry));
+#ifdef VM_MAXUSER_ADDRESS
KASSERT(state.start < VM_MAXUSER_ADDRESS);
KASSERT(state.end <= VM_MAXUSER_ADDRESS);
+#endif
if (entry->object.uvm_obj == NULL &&
entry->aref.ar_amap == NULL) {
state.realend = state.start;
Home |
Main Index |
Thread Index |
Old Index