Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 Check (inside), not (!outside). It explains...
details: https://anonhg.NetBSD.org/src/rev/572d6b3d552d
branches: trunk
changeset: 354452:572d6b3d552d
user: maxv <maxv%NetBSD.org@localhost>
date: Sat Jun 17 07:45:13 2017 +0000
description:
Check (inside), not (!outside). It explains the two install failures
reported between pmap.h::r1.65 and vmparam.h::r1.40.
diffstat:
sys/arch/x86/x86/vm_machdep.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 4fafa0665011 -r 572d6b3d552d sys/arch/x86/x86/vm_machdep.c
--- a/sys/arch/x86/x86/vm_machdep.c Sat Jun 17 07:22:12 2017 +0000
+++ b/sys/arch/x86/x86/vm_machdep.c Sat Jun 17 07:45:13 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.28 2017/02/23 03:34:22 kamil Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.29 2017/06/17 07:45:13 maxv Exp $ */
/*-
* Copyright (c) 1982, 1986 The Regents of the University of California.
@@ -80,7 +80,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.28 2017/02/23 03:34:22 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.29 2017/06/17 07:45:13 maxv Exp $");
#include "opt_mtrr.h"
@@ -399,7 +399,7 @@
{
vaddr_t va = (vaddr_t) vva;
- if (va >= VM_MIN_KERNEL_ADDRESS && va < VM_MAX_KERNEL_ADDRESS) {
+ if (va < PMAP_DIRECT_BASE || va >= PMAP_DIRECT_END) {
return false;
}
Home |
Main Index |
Thread Index |
Old Index