Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm32 Use right conditional for checking nG.
details: https://anonhg.NetBSD.org/src/rev/ea56becb478d
branches: trunk
changeset: 332473:ea56becb478d
user: matt <matt%NetBSD.org@localhost>
date: Tue Sep 23 06:31:54 2014 +0000
description:
Use right conditional for checking nG.
diffstat:
sys/arch/arm/arm32/pmap.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (31 lines):
diff -r 74b62c9f1887 -r ea56becb478d sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Tue Sep 23 05:45:01 2014 +0000
+++ b/sys/arch/arm/arm32/pmap.c Tue Sep 23 06:31:54 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.301 2014/09/23 05:45:01 nonaka Exp $ */
+/* $NetBSD: pmap.c,v 1.302 2014/09/23 06:31:54 matt Exp $ */
/*
* Copyright 2003 Wasabi Systems, Inc.
@@ -216,7 +216,7 @@
#include <arm/locore.h>
//#include <arm/arm32/katelib.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.301 2014/09/23 05:45:01 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.302 2014/09/23 06:31:54 matt Exp $");
//#define PMAP_DEBUG
#ifdef PMAP_DEBUG
@@ -2405,10 +2405,8 @@
const pt_entry_t opte = *ptep;
pt_entry_t npte = opte | execbits;
-#if defined(DIAGNOSTIC) && (defined(CPU_ARMV6) || defined(CPU_ARMV7))
- if (CPU_IS_ARMV6_P() || CPU_IS_ARMV7_P()) {
- KASSERT((opte & L2_XS_nG) == (pm == pmap_kernel() ? 0 : L2_XS_nG));
- }
+#ifdef ARM_MMU_EXTENDED
+ KASSERT((opte & L2_XS_nG) == (pm == pmap_kernel() ? 0 : L2_XS_nG));
#endif
NPDEBUG(PDB_BITS,
Home |
Main Index |
Thread Index |
Old Index