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/pmap.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/pmap.h')
-rw-r--r-- | sys/amd64/include/pmap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h index 746254d..71cfa88 100644 --- a/sys/amd64/include/pmap.h +++ b/sys/amd64/include/pmap.h @@ -62,6 +62,7 @@ #define PG_AVAIL1 0x200 /* / Available for system */ #define PG_AVAIL2 0x400 /* < programmers use */ #define PG_AVAIL3 0x800 /* \ */ +#define PG_NX (1ul<<63) /* No-execute */ /* Our various interpretations of the above */ @@ -202,6 +203,8 @@ pte_load_store(pt_entry_t *ptep, pt_entry_t pte) #define pde_store(pdep, pde) pte_store((pdep), (pde)) +extern pt_entry_t pg_nx; + #endif /* _KERNEL */ /* |