summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-02-06 00:23:22 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-02-06 00:23:22 +0000
commit356883ae78caeb632c915d62a72f6c35dcd915d3 (patch)
tree02fb195954977da075224286e4d3c4fe92db9ef9 /sys/arch
parent63b3f097011dfd841110c0bec4b64308232ed3c6 (diff)
some cpus start to have a NX oriented PGEX_I
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/amd64/include/pte.h3
-rw-r--r--sys/arch/i386/include/pte.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/amd64/include/pte.h b/sys/arch/amd64/include/pte.h
index eaa883d3f6f..bab70f51eae 100644
--- a/sys/arch/amd64/include/pte.h
+++ b/sys/arch/amd64/include/pte.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pte.h,v 1.1 2004/01/28 01:39:39 mickey Exp $ */
+/* $OpenBSD: pte.h,v 1.2 2004/02/06 00:23:21 deraadt Exp $ */
/* $NetBSD: pte.h,v 1.1 2003/04/26 18:39:47 fvdl Exp $ */
/*
@@ -133,5 +133,6 @@ typedef u_int64_t pt_entry_t; /* PTE */
#define PGEX_P 0x01 /* protection violation (vs. no mapping) */
#define PGEX_W 0x02 /* exception during a write cycle */
#define PGEX_U 0x04 /* exception while in user mode (upl) */
+#define PGEX_I 0x10 /* instruction fetch blocked by NX */
#endif /* _AMD64_PTE_H_ */
diff --git a/sys/arch/i386/include/pte.h b/sys/arch/i386/include/pte.h
index 27c422d7027..e27c072c19d 100644
--- a/sys/arch/i386/include/pte.h
+++ b/sys/arch/i386/include/pte.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pte.h,v 1.6 2002/07/31 02:30:29 mickey Exp $ */
+/* $OpenBSD: pte.h,v 1.7 2004/02/06 00:23:21 deraadt Exp $ */
/* $NetBSD: pte.h,v 1.11 1998/02/06 21:58:05 thorpej Exp $ */
/*
@@ -190,5 +190,6 @@ typedef u_int32_t pt_entry_t; /* PTE */
#define PGEX_P 0x01 /* protection violation (vs. no mapping) */
#define PGEX_W 0x02 /* exception during a write cycle */
#define PGEX_U 0x04 /* exception while in user mode (upl) */
+#define PGEX_I 0x10 /* instruction fetch blocked by NX */
#endif /* _I386_PTE_H_ */