Print this page
de-linting of .s files

@@ -23,15 +23,11 @@
  * Use is subject to license terms.
  *
  * Assembly code support for the Cheetah+ module
  */
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
-#if !defined(lint)
 #include "assym.h"
-#endif  /* lint */
 
 #include <sys/asm_linkage.h>
 #include <sys/mmu.h>
 #include <vm/hat_sfmmu.h>
 #include <sys/machparam.h>

@@ -52,12 +48,10 @@
 #ifdef TRAPTRACE
 #include <sys/traptrace.h>
 #endif /* TRAPTRACE */
 
 
-#if !defined(lint)
-
         .global retire_l2_start
         .global retire_l2_end
         .global unretire_l2_start
         .global unretire_l2_end
         .global retire_l3_start

@@ -125,20 +119,10 @@
         set     PN_L2_IDX_DISP_FLUSH, scr3;                                     \
         or      l2_idx_out, scr3, l2_idx_out;                                   \
         PN_ECACHE_REFLUSH_LINE(l2_idx_out, l3_idx_out, scr3, scr4)
 
 
-#endif  /* !lint */
-
-#if defined(lint)
-
-/*ARGSUSED*/
-int
-retire_l2(uint64_t tag_addr, uint64_t pattern)
-{return 0;}
-
-#else
         .align 4096
         ENTRY(retire_l2)
 retire_l2_start:
 
         ! since we disable interrupts, we don't need to do kpreempt_disable()

@@ -196,22 +180,10 @@
         ba      9b
          dec    %o5
 retire_l2_end:
         SET_SIZE(retire_l2)
 
-#endif  /* lint */
-
-#if defined(lint)
-
-/*
- */
-/*ARGSUSED*/
-int
-unretire_l2(uint64_t tag_addr, uint64_t pattern)
-{return 0;}
-
-#else
         ENTRY(unretire_l2)
 unretire_l2_start:
 
         ! since we disable interrupts, we don't need to do kpreempt_disable()
         rdpr    %pstate, %o2

@@ -255,20 +227,10 @@
         retl
          mov    %o5, %o0
 unretire_l2_end:
         SET_SIZE(unretire_l2)
 
-#endif  /* lint */
-
-#if defined(lint)
-
-/*ARGSUSED*/
-int
-retire_l3(uint64_t tag_addr, uint64_t pattern)
-{return 0;}
-
-#else
         ENTRY(retire_l3)
 retire_l3_start:
 
         ! since we disable interrupts, we don't need to do kpreempt_disable()
         rdpr    %pstate, %o2

@@ -321,22 +283,10 @@
         ba      9b
          dec    %o5
 retire_l3_end:
         SET_SIZE(retire_l3)
 
-#endif  /* lint */
-
-#if defined(lint)
-
-/*
- */
-/*ARGSUSED*/
-int
-unretire_l3(uint64_t tag_addr, uint64_t pattern)
-{return 0;}
-
-#else
         ENTRY(unretire_l3)
 unretire_l3_start:
 
         ! since we disable interrupts, we don't need to do kpreempt_disable()
         rdpr    %pstate, %o2

@@ -380,20 +330,10 @@
         retl
          mov    %o5, %o0
 unretire_l3_end:
         SET_SIZE(unretire_l3)
 
-#endif  /* lint */
-
-#if defined(lint)
-
-/*ARGSUSED*/
-int
-retire_l2_alternate(uint64_t tag_addr, uint64_t pattern)
-{return 0;}
-
-#else
         .align 2048
 
         ENTRY(retire_l2_alternate)
 
         ! since we disable interrupts, we don't need to do kpreempt_disable()

@@ -450,22 +390,10 @@
         clr     %o5
         ba      9b
          dec    %o5
         SET_SIZE(retire_l2_alternate)
 
-#endif  /* lint */
-
-#if defined(lint)
-
-/*
- */
-/*ARGSUSED*/
-int
-unretire_l2_alternate(uint64_t tag_addr, uint64_t pattern)
-{return 0;}
-
-#else
         ENTRY(unretire_l2_alternate)
 
         ! since we disable interrupts, we don't need to do kpreempt_disable()
         rdpr    %pstate, %o2
         andn    %o2, PSTATE_IE, %g1

@@ -507,20 +435,10 @@
         wrpr    %g0, %o2, %pstate               !restore pstate
         retl
          mov    %o5, %o0
         SET_SIZE(unretire_l2_alternate)
 
-#endif  /* lint */
-
-#if defined(lint)
-
-/*ARGSUSED*/
-int
-retire_l3_alternate(uint64_t tag_addr, uint64_t pattern)
-{return 0;}
-
-#else
         ENTRY(retire_l3_alternate)
 
         ! since we disable interrupts, we don't need to do kpreempt_disable()
         rdpr    %pstate, %o2
         andn    %o2, PSTATE_IE, %g1

@@ -571,22 +489,10 @@
         ! Hmm.  Not INV, not NA
         ba      9b
          dec    %o5
         SET_SIZE(retire_l3_alternate)
 
-#endif  /* lint */
-
-#if defined(lint)
-
-/*
- */
-/*ARGSUSED*/
-int
-unretire_l3_alternate(uint64_t tag_addr, uint64_t pattern)
-{return 0;}
-
-#else
         ENTRY(unretire_l3_alternate)
 
         ! since we disable interrupts, we don't need to do kpreempt_disable()
         rdpr    %pstate, %o2
         andn    %o2, PSTATE_IE, %g1

@@ -628,20 +534,10 @@
         wrpr    %g0, %o2, %pstate               !restore pstate
         retl
          mov    %o5, %o0
         SET_SIZE(unretire_l3_alternate)
 
-#endif  /* lint */
-
-#if defined(lint)
-
-/*ARGSUSED*/
-void
-get_ecache_dtags_tl1(uint64_t afar, ch_cpu_logout_t *clop)
-{ }
-
-#else
         ENTRY(get_ecache_dtags_tl1)
 
 
         PARK_SIBLING_CORE(%g3, %g4, %g5)        
         add     %g2, CH_CLO_DATA + CH_CHD_EC_DATA, %g2

@@ -652,19 +548,10 @@
         UNPARK_SIBLING_CORE(%g3, %g4, %g5)      ! can use %g3 again
 
         retry
         SET_SIZE(get_ecache_dtags_tl1)
 
-#endif  /* lint */
-
-#if defined(lint)
-/*ARGSUSED*/
-void
-get_l2_tag_tl1(uint64_t tag_addr, uint64_t tag_data_ptr)
-{ }
-
-#else
         ENTRY(get_l2_tag_tl1)
 
         /*
          * Now read the tag data
          */

@@ -672,19 +559,10 @@
         stx     %g4, [%g2]
 
         retry
         SET_SIZE(get_l2_tag_tl1)
 
-#endif  /* lint */
-
-#if defined(lint)
-/*ARGSUSED*/
-void
-get_l3_tag_tl1(uint64_t tag_addr, uint64_t tag_data_ptr)
-{ }
-
-#else
         ENTRY(get_l3_tag_tl1)
 
         /*
          * Now read the tag data
          */

@@ -691,8 +569,6 @@
         ldxa    [%g1]ASI_EC_DIAG, %g4           ! save tag_data
         stx     %g4, [%g2]
 
         retry
         SET_SIZE(get_l3_tag_tl1)
-
-#endif  /* lint */