Print this page
de-linting of .s files

@@ -21,16 +21,11 @@
 /*
  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
-#if defined(lint)
-#include <sys/types.h>
-#include <sys/cpuvar.h>
-#else   /*lint */
 #include "assym.h"
-#endif  /* lint */
 
 #include <sys/asm_linkage.h>
 #include <sys/privregs.h>
 #include <sys/x_call.h>
 #include <sys/xc_impl.h>

@@ -38,19 +33,10 @@
 #ifdef TRAPTRACE
 #include <sys/traptrace.h>
 #endif /* TRAPTRACE */
 
 
-#if defined(lint)
-
-/* ARGSUSED */
-void
-self_xcall(struct cpu *cpu, uint64_t arg1, uint64_t arg2, xcfunc_t *func)
-{}
-
-#else
-
 /*
  * Entered by the software trap (TT=ST_SELFXCALL, TL>0) thru send_self_xcall().
  * Emulate the mondo handler - vec_interrupt().
  *
  * Global registers are the Alternate Globals.

@@ -100,22 +86,11 @@
         jmp     %o3                             ! call the fast trap handler
         mov     %o2, %g2
         /* Not Reached */
         SET_SIZE(self_xcall)
 
-#endif  /* lint */
-
 #ifdef  TRAPTRACE
-#if defined(lint)
-
-/* ARGSUSED */
-void
-xc_trace(u_int traptype, cpuset_t *cpu_set, xcfunc_t *func,
-        uint64_t arg1, uint64_t arg2)
-{}
-
-#else   /* lint */
         ENTRY(xc_trace)
         rdpr    %pstate, %g1
         andn    %g1, PSTATE_IE | PSTATE_AM, %g2
         wrpr    %g0, %g2, %pstate                       /* disable interrupts */
         TRACE_PTR(%g3, %g4)

@@ -184,21 +159,12 @@
 #endif  /* CPUSET_SIZE */
         retl
         wrpr    %g0, %g1, %pstate                       /* enable interrupts */
         SET_SIZE(xc_trace)
 
-#endif  /* lint */
 #endif  /* TRAPTRACE */
 
-#if defined(lint)
-
-/* ARGSUSED */
-void
-xt_sync_tl1(uint64_t *cpu_sync_addr)
-{}
-
-#else
 /*
  * This dummy tl1 function is there to ensure that previously called
  * xtrap handlers have exececuted. The hardware (mondo dispatch
  * mechanism) is such that return from xtrap doesn't guarantee execution
  * of xtrap handler. So, callers can call this xtrap-handler to ensure

@@ -208,6 +174,5 @@
  */
         ENTRY_NP(xt_sync_tl1)
         retry
         SET_SIZE(xt_sync_tl1)
 
-#endif  /* lint */