Print this page
de-linting of .s files

@@ -25,33 +25,20 @@
 
 /*
  * General machine architecture & implementation specific
  * assembly language routines.
  */
-#if defined(lint)
-#include <sys/types.h>
-#include <sys/t_lock.h>
-#else   /* lint */
 #include "assym.h"
-#endif  /* lint */
 
 #include <sys/asm_linkage.h>
 #include <sys/machsystm.h>
 #include <sys/machthread.h>
 #include <sys/privregs.h>
 #include <sys/cmpregs.h>
 #include <sys/clock.h>
 #include <sys/fpras.h>
 
-#if defined(lint)
-
-uint64_t
-ultra_gettick(void)
-{ return (0); }
-
-#else   /* lint */
-
 /*
  * This isn't the routine you're looking for.
  *
  * The routine simply returns the value of %tick on the *current* processor.
  * Most of the time, gettick() [which in turn maps to %stick on platforms

@@ -61,21 +48,10 @@
         ENTRY(ultra_gettick)
         retl
         rdpr    %tick, %o0
         SET_SIZE(ultra_gettick)
 
-#endif  /* lint */
-
-#if defined(lint)
-
-/*ARGSUSED*/
-int
-getprocessorid(void)
-{ return (0); }
-
-#else   /* lint */
-
 /*
  * Get the processor ID.
  * === MID reg as specified in 15dec89 sun4u spec, sec 5.4.3
  */
 

@@ -83,30 +59,10 @@
         CPU_INDEX(%o0, %o1)
         retl
         nop
         SET_SIZE(getprocessorid)
 
-#endif  /* lint */
-
-#if defined(lint)
-/*ARGSUSED*/
-void
-set_error_enable_tl1(uint64_t neer, uint64_t action)
-{}
-
-/* ARGSUSED */
-void
-set_error_enable(uint64_t neer)
-{}
-
-uint64_t
-get_error_enable()
-{
-        return ((uint64_t)0);
-}
-#else /* lint */
-
         ENTRY(set_error_enable_tl1)
         cmp     %g2, EER_SET_ABSOLUTE
         be      %xcc, 1f
           nop
         ldxa    [%g0]ASI_ESTATE_ERR, %g3

@@ -131,70 +87,29 @@
         ENTRY(get_error_enable)
         retl
         ldxa    [%g0]ASI_ESTATE_ERR, %o0        /* ecache error enable reg */
         SET_SIZE(get_error_enable)
 
-#endif /* lint */
-
-#if defined(lint)
-void
-get_asyncflt(uint64_t *afsr)
-{
-        afsr = afsr;
-}
-#else /* lint */
-
         ENTRY(get_asyncflt)
         ldxa    [%g0]ASI_AFSR, %o1              ! afsr reg
         retl
         stx     %o1, [%o0]
         SET_SIZE(get_asyncflt)
 
-#endif /* lint */
-
-#if defined(lint)
-void
-set_asyncflt(uint64_t afsr)
-{
-        afsr = afsr;
-}
-#else /* lint */
-
         ENTRY(set_asyncflt)
         stxa    %o0, [%g0]ASI_AFSR              ! afsr reg
         membar  #Sync
         retl
         nop
         SET_SIZE(set_asyncflt)
 
-#endif /* lint */
-
-#if defined(lint)
-void
-get_asyncaddr(uint64_t *afar)
-{
-        afar = afar;
-}
-#else /* lint */
-
         ENTRY(get_asyncaddr)
         ldxa    [%g0]ASI_AFAR, %o1              ! afar reg
         retl
         stx     %o1, [%o0]
         SET_SIZE(get_asyncaddr)
 
-#endif /* lint */
-
-#if defined(lint) || defined(__lint)
-
-/* ARGSUSED */
-hrtime_t
-tick2ns(hrtime_t tick, uint_t cpuid)
-{ return 0; }
-
-#else   /* lint */
-
         ENTRY_NP(tick2ns)
         sethi   %hi(cpunodes), %o4
         or      %o4, %lo(cpunodes), %o4         ! %o4 = &cpunodes
         ! Register usage:
         !

@@ -208,21 +123,10 @@
         NATIVE_TIME_TO_NSEC_SCALE(%o0, %o2, %o3, TICK_NSEC_SHIFT)
         retl
         nop
         SET_SIZE(tick2ns)
 
-#endif  /* lint */
-
-#if defined(lint)
-
-/* ARGSUSED */
-void
-set_cmp_error_steering(void)
-{}
-
-#else   /* lint */
-
         ENTRY(set_cmp_error_steering)
         membar  #Sync
         set     ASI_CORE_ID, %o0                ! %o0 = ASI_CORE_ID
         ldxa    [%o0]ASI_CMP_PER_CORE, %o0      ! get ASI_CORE_ID
         and     %o0, COREID_MASK, %o0

@@ -231,38 +135,15 @@
         membar  #Sync                           !  non-core specific errors
         retl
         nop
         SET_SIZE(set_cmp_error_steering)
 
-#endif  /* lint */
-
-#if defined(lint)
-
-/* ARGSUSED */
-uint64_t
-ultra_getver(void)
-{
-        return (0); 
-}
-
-#else /* lint */
-
         ENTRY(ultra_getver)
         retl
         rdpr    %ver, %o0
         SET_SIZE(ultra_getver)
 
-#endif /* lint */
-
-#if defined(lint)
-
-int
-fpras_chkfn_type1(void)
-{ return 0; }
-
-#else   /* lint */
-
         /*
          * Check instructions using just the AX pipelines, designed by
          * C.B. Liaw of PNP.
          *
          * This function must match a struct fpras_chkfn and must be

@@ -419,24 +300,14 @@
         mov     CBO2, CBR2              ! 14, restore borrowed register
         retl                            ! 15
           mov   FPRAS_BADTRAP, %o0      ! 16, how detected
         SET_SIZE(fpras_chkfn_type1)
 
-#endif  /* lint */
-
 /*
  * fp_zero() - clear all fp data registers and the fsr
  */
 
-#if defined(lint) || defined(__lint)
-
-void
-fp_zero(void)
-{}
-
-#else   /* lint */
-
         ENTRY_NP(fp_zero)
         std     %g0, [%sp + ARGPUSH + STACK_BIAS]
         fzero   %f0
         fzero   %f2
         ldd     [%sp + ARGPUSH + STACK_BIAS], %fsr

@@ -471,6 +342,5 @@
         faddd   %f0, %f2, %f60
         retl
         fmuld   %f0, %f2, %f62
         SET_SIZE(fp_zero)
 
-#endif  /* lint */