Print this page
de-linting of .s files
*** 22,34 ****
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
- #if !defined(lint)
#include "assym.h"
- #endif /* !lint */
#include <sys/asm_linkage.h>
#include <sys/privregs.h>
#include <sys/sun4asi.h>
#include <sys/machasi.h>
#include <sys/hypervisor_api.h>
--- 22,32 ----
*** 116,128 ****
*/
/*
* NOT is used for traps that just shouldn't happen.
* It comes in both single and quadruple flavors.
*/
- #if !defined(lint)
.global trap
- #endif /* !lint */
#define NOT \
TT_TRACE(trace_gen) ;\
set trap, %g1 ;\
rdpr %tt, %g3 ;\
ba,pt %xcc, sys_trap ;\
--- 114,124 ----
*** 152,164 ****
/*
* TRAP vectors to the trap() function.
* It's main use is for user errors.
*/
- #if !defined(lint)
.global trap
- #endif /* !lint */
#define TRAP(arg) \
TT_TRACE(trace_gen) ;\
set trap, %g1 ;\
mov arg, %g3 ;\
ba,pt %xcc, sys_trap ;\
--- 148,158 ----
*** 271,282 ****
clr %l4; clr %l5; clr %l6; clr %l7 ;\
clr %o0; clr %o1; clr %o2; clr %o3 ;\
clr %o4; clr %o5; clr %o6; clr %o7 ;\
retry; .align 128
- #if !defined(lint)
-
/*
* If we get an unresolved tlb miss while in a window handler, the fault
* handler will resume execution at the last instruction of the window
* hander, instead of delivering the fault to the kernel. Spill handlers
* use this to spill windows into the wbuf.
--- 265,274 ----
*** 582,593 ****
SKIP(31-25-TT_TRACE_L_INS) ;\
ba,a,pt %xcc, fault_64bit_/**/tail ;\
.empty
- #endif /* !lint */
-
/*
* SPILL_mixed spills either size window, depending on
* whether %sp is even or odd, to a 32-bit address space.
* This may only be used in conjunction with SPILL_32bit/
* FILL_64bit.
--- 574,583 ----
*** 723,734 ****
TT_TRACE(trace_gen) ;\
ba,pt %xcc,.fp_exception ;\
nop ;\
.align 32
- #if !defined(lint)
-
/*
* ECACHE_ECC error traps at level 0 and level 1
*/
#define ECACHE_ECC(table_name) \
.global table_name ;\
--- 713,722 ----
*** 738,749 ****
rdpr %tt, %g3 ;\
ba,pt %xcc, sys_trap ;\
sub %g0, 1, %g4 ;\
.align 32
- #endif /* !lint */
-
/*
* illegal instruction trap
*/
#define ILLTRAP_INSTR \
membar #Sync ;\
--- 726,735 ----
*** 1085,1101 ****
#else
#define TRACE_TSBHIT(ttextra)
#endif
- #if defined(lint)
-
- struct scb trap_table;
- struct scb scb; /* trap_table/scb are the same object */
-
- #else /* lint */
-
/*
* =======================================================================
* SPARC V9 TRAP TABLE
*
* The trap table is divided into two halves: the first half is used when
--- 1071,1080 ----
*** 2895,2900 ****
ENTRY_NP(syscall_wrapper)
BRAND_CALLBACK(BRAND_CB_SYSCALL)
SYSCALL_NOTT(syscall_trap)
SET_SIZE(syscall_wrapper)
- #endif /* lint */
--- 2874,2878 ----