aboutsummaryrefslogtreecommitdiff
path: root/sys/ia64/include/pte.h
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2004-11-21 21:40:08 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2004-11-21 21:40:08 +0000
commit2ba0042660e8b184561100c0025aa11429cc776d (patch)
treea6e8598a29ae1bee0634661b5299f68b2753f0e5 /sys/ia64/include/pte.h
parentb1ff74ebb3dc6eebf5bb1e7432f448f9eccf52fd (diff)
Remove struct ia64_itir and use a plain old uint64_t instead.
Notes
Notes: svn path=/head/; revision=137978
Diffstat (limited to 'sys/ia64/include/pte.h')
-rw-r--r--sys/ia64/include/pte.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/sys/ia64/include/pte.h b/sys/ia64/include/pte.h
index 20c5042ad1ab..f57cb4dd17ae 100644
--- a/sys/ia64/include/pte.h
+++ b/sys/ia64/include/pte.h
@@ -59,6 +59,11 @@
#define PTE_MANAGED 0x0040000000000000
#define PTE_PROT_MASK 0x0700000000000000
+#define ITIR__RV1_ 0x0000000000000003
+#define ITIR_PS_MASK 0x00000000000000FC
+#define ITIR_KEY_MASK 0x00000000FFFFFF00
+#define ITIR__RV2_ 0xFFFFFFFF00000000
+
#ifndef LOCORE
typedef uint64_t pt_entry_t;
@@ -76,21 +81,11 @@ pte_atomic_set(pt_entry_t *ptep, uint64_t val)
}
/*
- * Layout of cr.itir.
- */
-struct ia64_itir {
- uint64_t __rv1__ :2; /* bits 0..1 */
- uint64_t ps :6; /* bits 2..7 */
- uint64_t key :24; /* bits 8..31 */
- uint64_t __rv2__ :32; /* bits 32..63 */
-};
-
-/*
* A long-format VHPT entry.
*/
struct ia64_lpte {
pt_entry_t pte;
- struct ia64_itir itir;
+ uint64_t itir;
uint64_t tag; /* includes ti */
uint64_t chain; /* pa of collision chain */
};