Author: marius
Date: Tue Jan 31 23:20:14 2012
New Revision: 230851
URL: http://svn.freebsd.org/changeset/base/230851

Log:
  Add more sparc64 compatibility macros for the shared loader.
  This is a direct commit to stable/8 in order to unbreak the build with
  r224370 in place.

Modified:
  stable/8/sys/sun4v/include/tlb.h

Modified: stable/8/sys/sun4v/include/tlb.h
==============================================================================
--- stable/8/sys/sun4v/include/tlb.h    Tue Jan 31 23:09:27 2012        
(r230850)
+++ stable/8/sys/sun4v/include/tlb.h    Tue Jan 31 23:20:14 2012        
(r230851)
@@ -43,7 +43,20 @@
        (TD_V | TD_4M | (TLB_DIRECT_ADDRESS_MASK - TLB_DIRECT_PAGE_MASK))
 
 #define        TLB_DAR_SLOT_SHIFT              (3)
-#define        TLB_DAR_SLOT(slot)              ((slot) << TLB_DAR_SLOT_SHIFT)
+
+/*
+ * sparc64 compatibility for the loader
+ */
+#define        TLB_DAR_TLB_SHIFT               (16)
+#define        TLB_DAR_SLOT(tlb, slot)                                         
\
+       ((tlb) << TLB_DAR_TLB_SHIFT | (slot) << TLB_DAR_SLOT_SHIFT)
+#define        TLB_DAR_T16                     (0)     /* US-III{,i,+}, IV{,+} 
*/
+#define        TLB_DAR_T32                     (0)     /* US-I, II{,e,i} */
+#define        TLB_DAR_DT512_0                 (2)     /* US-III{,i,+}, IV{,+} 
*/
+#define        TLB_DAR_DT512_1                 (3)     /* US-III{,i,+}, IV{,+} 
*/
+#define        TLB_DAR_IT128                   (2)     /* US-III{,i,+}, IV */
+#define        TLB_DAR_IT512                   (2)     /* US-IV+ */
+#define        TLB_DAR_FTLB                    (0)     /* SPARC64 V, VI, VII, 
VIIIfx */
 
 #define        TAR_VPN_SHIFT                   (13)
 #define        TAR_CTX_MASK                    ((1 << TAR_VPN_SHIFT) - 1)
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to