Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/sparc64 sun4v: ensure that the X (eXecute) ...
details: https://anonhg.NetBSD.org/src/rev/67506062ac72
branches: trunk
changeset: 333364:67506062ac72
user: palle <palle%NetBSD.org@localhost>
date: Thu Oct 30 13:57:14 2014 +0000
description:
sun4v: ensure that the X (eXecute) bit is set in the TTE
diffstat:
sys/arch/sparc64/sparc64/pmap.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r a6e7723b2aa9 -r 67506062ac72 sys/arch/sparc64/sparc64/pmap.c
--- a/sys/arch/sparc64/sparc64/pmap.c Thu Oct 30 13:14:08 2014 +0000
+++ b/sys/arch/sparc64/sparc64/pmap.c Thu Oct 30 13:57:14 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.290 2014/09/04 18:48:29 palle Exp $ */
+/* $NetBSD: pmap.c,v 1.291 2014/10/30 13:57:14 palle Exp $ */
/*
*
* Copyright (C) 1996-1999 Eduardo Horvath.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.290 2014/09/04 18:48:29 palle Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.291 2014/10/30 13:57:14 palle Exp $");
#undef NO_VCACHE /* Don't forget the locked TLB in dostart */
#define HWREF
@@ -541,6 +541,9 @@
1, /* valid */
0 /* ie */);
tp[i].data |= TLB_L | TLB_CV;
+ if (CPU_ISSUN4V)
+ tp[i].data |= SUN4V_TLB_X;
+
DPRINTF(PDB_BOOT1, ("xtlb[%d]: Tag: %" PRIx64 " Data: %"
PRIx64 "\n", i, tp[i].tag, tp[i].data));
}
Home |
Main Index |
Thread Index |
Old Index