Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/include/arm32 Add XN bit L2 large pages.
details: https://anonhg.NetBSD.org/src/rev/840811e8cf95
branches: trunk
changeset: 327038:840811e8cf95
user: matt <matt%NetBSD.org@localhost>
date: Wed Feb 26 01:53:23 2014 +0000
description:
Add XN bit L2 large pages.
diffstat:
sys/arch/arm/include/arm32/pte.h | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 7ae60713b891 -r 840811e8cf95 sys/arch/arm/include/arm32/pte.h
--- a/sys/arch/arm/include/arm32/pte.h Wed Feb 26 01:51:51 2014 +0000
+++ b/sys/arch/arm/include/arm32/pte.h Wed Feb 26 01:53:23 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pte.h,v 1.14 2014/02/22 20:46:35 matt Exp $ */
+/* $NetBSD: pte.h,v 1.15 2014/02/26 01:53:23 matt Exp $ */
/*
* Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -227,6 +227,7 @@
#define L2_XS_nG 0x00000800 /* ARMv6 Not-Global */
#define L2_V6_L_TEX L2_XS_L_TEX
#define L2_V6_XS_TEX L2_XS_T_TEX
+#define L2_XS_L_XN 0x00008000 /* ARMv6 eXecute Never */
/*
@@ -239,7 +240,7 @@
* Access Permissions for L1 and L2 of ARMv6 with XP=1 and ARMv7
*/
#define AP_R 0x01 /* readable */
-#define AP_RO 0x20 /* read-only */
+#define AP_RO 0x20 /* read-only (L2_XS_APX >> 4) */
/*
* Short-hand for common AP_* constants.
Home |
Main Index |
Thread Index |
Old Index