Print this page
de-linting of .s files

@@ -22,13 +22,11 @@
 /*
  * 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>

@@ -116,13 +114,11 @@
  */
 /*
  * 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  ;\

@@ -152,13 +148,11 @@
 
 /*
  * 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  ;\

@@ -271,12 +265,10 @@
         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.

@@ -582,12 +574,10 @@
         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.

@@ -723,12 +713,10 @@
         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              ;\

@@ -738,12 +726,10 @@
         rdpr    %tt, %g3                ;\
         ba,pt   %xcc, sys_trap          ;\
         sub     %g0, 1, %g4             ;\
         .align  32
 
-#endif /* !lint */
-
 /*
  * illegal instruction trap
  */
 #define ILLTRAP_INSTR                     \
         membar  #Sync                     ;\

@@ -1085,17 +1071,10 @@
 #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

@@ -2895,6 +2874,5 @@
         ENTRY_NP(syscall_wrapper)
         BRAND_CALLBACK(BRAND_CB_SYSCALL)
         SYSCALL_NOTT(syscall_trap)
         SET_SIZE(syscall_wrapper)
 
-#endif  /* lint */