Print this page
de-linting of .s files
*** 21,36 ****
/*
* 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>
--- 21,31 ----
*** 38,56 ****
#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.
--- 33,42 ----
*** 100,121 ****
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)
--- 86,96 ----
*** 184,204 ****
#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
--- 159,170 ----
*** 208,213 ****
*/
ENTRY_NP(xt_sync_tl1)
retry
SET_SIZE(xt_sync_tl1)
- #endif /* lint */
--- 174,178 ----