diff options
author | 2004-02-06 00:23:21 +0000 | |
---|---|---|
committer | 2004-02-06 00:23:21 +0000 | |
commit | 7adef30aaf9356590e8363377c7457b8f3bd45ce (patch) | |
tree | abe0d4637307d034150b91b14de2e61f0b9f5367 /sys | |
parent | allocate curpeer little earlier. (diff) | |
download | wireguard-openbsd-7adef30aaf9356590e8363377c7457b8f3bd45ce.tar.xz wireguard-openbsd-7adef30aaf9356590e8363377c7457b8f3bd45ce.zip |
some cpus start to have a NX oriented PGEX_I
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/include/pte.h | 3 | ||||
-rw-r--r-- | sys/arch/i386/include/pte.h | 3 |
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_ */ |