diff options
author | peter <peter@FreeBSD.org> | 2004-06-08 01:02:52 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2004-06-08 01:02:52 +0000 |
commit | 35d8561b4c4fdd818bacce23bc56f142116331dc (patch) | |
tree | 86f958b9ec27080d541002eb44a28fbb349d202d /sys/amd64/include/specialreg.h | |
parent | 8a41fbc2075568db0ac84b7c65974c27c858362f (diff) | |
download | FreeBSD-src-35d8561b4c4fdd818bacce23bc56f142116331dc.zip FreeBSD-src-35d8561b4c4fdd818bacce23bc56f142116331dc.tar.gz |
Initial PG_NX support (no-execute page bit)
- export the rest of the cpu features (and amd's features).
- turn on EFER_NXE, depending on the NX amd feature bit
- reorg the identcpu stuff a bit in order to stop treating the
amd features as second class features (since it is now a primary feature
bit set) and make it easier to export.
Diffstat (limited to 'sys/amd64/include/specialreg.h')
-rw-r--r-- | sys/amd64/include/specialreg.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/amd64/include/specialreg.h b/sys/amd64/include/specialreg.h index 905bbf0..37f2328 100644 --- a/sys/amd64/include/specialreg.h +++ b/sys/amd64/include/specialreg.h @@ -112,6 +112,22 @@ #define CPUID_B30 0x40000000 #define CPUID_PBE 0x80000000 +#define CPUID2_SSE3 0x00000001 +#define CPUID2_MON 0x00000008 +#define CPUID2_DS_CPL 0x00000010 +#define CPUID2_EST 0x00000080 +#define CPUID2_TM2 0x00000100 +#define CPUID2_CNTXID 0x00000400 +#define CPUID2_CX16 0x00002000 + +/* + * Important bits in the AMD extended cpuid flags + */ +#define AMDID_SYSCALL 0x00000800 +#define AMDID_MP 0x00080000 +#define AMDID_NX 0x00100000 +#define AMDID_LM 0x20000000 + /* * CPUID instruction 1 ebx info */ |