Print this page
de-linting of .s files

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4u/ml/mach_xc.s
          +++ new/usr/src/uts/sun4u/ml/mach_xc.s
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
  25   25  
  26      -#if defined(lint)
  27      -#include <sys/types.h>
  28      -#include <sys/cpuvar.h>
  29      -#else   /*lint */
  30   26  #include "assym.h"
  31      -#endif  /* lint */
  32   27  
  33   28  #include <sys/asm_linkage.h>
  34   29  #include <sys/privregs.h>
  35   30  #include <sys/x_call.h>
  36   31  #include <sys/xc_impl.h>
  37   32  
  38   33  #ifdef TRAPTRACE
  39   34  #include <sys/traptrace.h>
  40   35  #endif /* TRAPTRACE */
  41   36  
  42   37  
  43      -#if defined(lint)
  44      -
  45      -/* ARGSUSED */
  46      -void
  47      -self_xcall(struct cpu *cpu, uint64_t arg1, uint64_t arg2, xcfunc_t *func)
  48      -{}
  49      -
  50      -#else
  51      -
  52   38  /*
  53   39   * Entered by the software trap (TT=ST_SELFXCALL, TL>0) thru send_self_xcall().
  54   40   * Emulate the mondo handler - vec_interrupt().
  55   41   *
  56   42   * Global registers are the Alternate Globals.
  57   43   * Arguments:
  58   44   *      %o0 - CPU
  59   45   *      ILP32 kernel:
  60   46   *              %o5 - function to call
  61   47   *              %o1, %o2, %o3, %o4  - arguments
↓ open down ↓ 33 lines elided ↑ open up ↑
  95   81  #endif /* TRAPTRACE */
  96   82          !
  97   83          ! Load the arguments for the fast trap handler.
  98   84          !
  99   85          mov     %o1, %g1
 100   86          jmp     %o3                             ! call the fast trap handler
 101   87          mov     %o2, %g2
 102   88          /* Not Reached */
 103   89          SET_SIZE(self_xcall)
 104   90  
 105      -#endif  /* lint */
 106      -
 107   91  #ifdef  TRAPTRACE
 108      -#if defined(lint)
 109      -
 110      -/* ARGSUSED */
 111      -void
 112      -xc_trace(u_int traptype, cpuset_t *cpu_set, xcfunc_t *func,
 113      -        uint64_t arg1, uint64_t arg2)
 114      -{}
 115      -
 116      -#else   /* lint */
 117   92          ENTRY(xc_trace)
 118   93          rdpr    %pstate, %g1
 119   94          andn    %g1, PSTATE_IE | PSTATE_AM, %g2
 120   95          wrpr    %g0, %g2, %pstate                       /* disable interrupts */
 121   96          TRACE_PTR(%g3, %g4)
 122   97          GET_TRACE_TICK(%g6, %g4)
 123   98          stxa    %g6, [%g3 + TRAP_ENT_TICK]%asi
 124   99          stha    %g0, [%g3 + TRAP_ENT_TL]%asi
 125  100          set     TT_XCALL, %g2
 126  101          or      %o0, %g2, %g4
↓ open down ↓ 52 lines elided ↑ open up ↑
 179  154  2:      
 180  155          TRACE_NEXT(%g2, %g3, %g4)
 181  156          cmp     %o1, %g5
 182  157          bl      1b
 183  158          inc     %o2
 184  159  #endif  /* CPUSET_SIZE */
 185  160          retl
 186  161          wrpr    %g0, %g1, %pstate                       /* enable interrupts */
 187  162          SET_SIZE(xc_trace)
 188  163  
 189      -#endif  /* lint */
 190  164  #endif  /* TRAPTRACE */
 191  165  
 192      -#if defined(lint)
 193      -
 194      -/* ARGSUSED */
 195      -void
 196      -xt_sync_tl1(uint64_t *cpu_sync_addr)
 197      -{}
 198      -
 199      -#else
 200  166  /*
 201  167   * This dummy tl1 function is there to ensure that previously called
 202  168   * xtrap handlers have exececuted. The hardware (mondo dispatch
 203  169   * mechanism) is such that return from xtrap doesn't guarantee execution
 204  170   * of xtrap handler. So, callers can call this xtrap-handler to ensure
 205  171   * that the previous one is complete. This is because the hardware only
 206  172   * can handle 1 mondo at a time - when this mondo is handled, we are sure
 207  173   * that the mondo for the previous xtrap must have been handled.
 208  174   */
 209  175          ENTRY_NP(xt_sync_tl1)
 210  176          retry
 211  177          SET_SIZE(xt_sync_tl1)
 212  178  
 213      -#endif  /* lint */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX