From 356883ae78caeb632c915d62a72f6c35dcd915d3 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 6 Feb 2004 00:23:22 +0000 Subject: some cpus start to have a NX oriented PGEX_I --- sys/arch/amd64/include/pte.h | 3 ++- sys/arch/i386/include/pte.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/arch') 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_ */ -- cgit v1.2.3