aboutsummaryrefslogtreecommitdiff
path: root/sys/sun4v/include
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2008-08-07 22:46:25 +0000
committerMarius Strobl <marius@FreeBSD.org>2008-08-07 22:46:25 +0000
commit0b1bfc498637c0b38c3bce631a6989d45b03d581 (patch)
tree5b357a34d4393b5feca4fe437362997ea3f19820 /sys/sun4v/include
parent68910e7a6775efd4d9a33002b61962b18e11a5fb (diff)
downloadsrc-0b1bfc498637c0b38c3bce631a6989d45b03d581.tar.gz
src-0b1bfc498637c0b38c3bce631a6989d45b03d581.zip
- Reimplement {d,i}tlb_enter() and {d,i}tlb_va_to_pa() in C. There's
no particular reason for them to be implemented in assembler and having them in C allows easier extension as well as using more C macros and {d,i}tlb_slot_max rather than hard-coding magic (and actually spitfire-only) values. - Fix the compilation of pmap_print_tte(). - Change pmap_print_tlb() to use ldxa() rather than re-rolling it inline as well as TLB_DAR_SLOT and {d,i}tlb_slot_max rather than hardcoding magic (and actually spitfire-only) values. - While at it, suffix the above mentioned functions with "_sun4u" to underline they're architecture-specific. - Use __FBSDID and macros instead of magic values in locore.S. - Remove unused includes and smp_stack in locore.S.
Notes
Notes: svn path=/head/; revision=181398
Diffstat (limited to 'sys/sun4v/include')
-rw-r--r--sys/sun4v/include/tte.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sun4v/include/tte.h b/sys/sun4v/include/tte.h
index 4cdcd0d38fc9..9b190275d7f5 100644
--- a/sys/sun4v/include/tte.h
+++ b/sys/sun4v/include/tte.h
@@ -41,11 +41,15 @@
#define TD_SOFT2_BITS (9)
#define TD_DIAG_BITS (9)
+#define TD_PA_CH_BITS (30)
+#define TD_PA_SF_BITS (28)
#define TD_PA_BITS (42)
#define TD_SOFT_BITS (6)
#define TD_SOFT2_MASK ((1UL << TD_SOFT2_BITS) - 1)
#define TD_DIAG_MASK ((1UL << TD_DIAG_BITS) - 1)
+#define TD_PA_CH_MASK ((1UL << TD_PA_CH_BITS) - 1)
+#define TD_PA_SF_MASK ((1UL << TD_PA_SF_BITS) - 1)
#define TD_PA_MASK ((1UL << TD_PA_BITS) - 1)
#define TD_SOFT_MASK ((1UL << TD_SOFT_BITS) - 1)