Print this page
de-linting of .s files

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4/ml/xc.s
          +++ new/usr/src/uts/sun4/ml/xc.s
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
  23   23   * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  28      -
  29      -#if defined(lint)
  30      -#include <sys/types.h>
  31      -#include <sys/cpuvar.h>
  32      -#else   /*lint */
  33   27  #include "assym.h"
  34      -#endif  /* lint */
  35   28  
  36   29  #include <sys/param.h>
  37   30  #include <sys/asm_linkage.h>
  38   31  #include <sys/errno.h>
  39   32  #include <sys/intreg.h>
  40   33  #include <sys/intr.h>
  41   34  #include <sys/x_call.h>
  42   35  #include <sys/privregs.h>
  43   36  #include <sys/machthread.h>
  44   37  #include <sys/machtrap.h>
  45   38  #include <sys/xc_impl.h>
  46   39  #include <sys/bitmap.h>
  47   40  
  48   41  #ifdef TRAPTRACE
  49   42  #include <sys/traptrace.h>
  50   43  #endif /* TRAPTRACE */
  51   44  
  52   45  
  53      -#if defined(lint)
  54      -
  55      -/* ARGSUSED */
  56      -void
  57      -send_self_xcall(struct cpu *cpu, uint64_t arg1, uint64_t arg2, xcfunc_t *func)
  58      -{}
  59      -
  60      -#else
  61   46  /*
  62   47   * For a x-trap request to the same processor, just send a fast trap.
  63   48   * Does not accept inums.
  64   49   */
  65   50          ENTRY_NP(send_self_xcall)
  66   51          ta       ST_SELFXCALL
  67   52          retl
  68   53          nop
  69   54          SET_SIZE(send_self_xcall)
  70      -#endif  /* lint */
  71   55  
  72      -#if defined(lint)
  73      -void
  74      -idle_stop_xcall(void)
  75      -{}
  76      -#else
  77   56  /*
  78   57   * idle or stop xcall handler.
  79   58   *
  80   59   * Called in response to an xt_some initiated by idle_other_cpus
  81   60   * and stop_other_cpus.
  82   61   *
  83   62   *      Entry:
  84   63   *              %g1 - handler at TL==0
  85   64   *
  86   65   *      Register Usage:
↓ open down ↓ 4 lines elided ↑ open up ↑
  91   70   * passed to sys_trap, to run at TL=0. No need to worry about
  92   71   * the regp passed to cpu_idle_self/cpu_stop_self, since
  93   72   * neither require arguments.
  94   73   */
  95   74          ENTRY_NP(idle_stop_xcall)
  96   75          rdpr    %pil, %g4
  97   76          cmp     %g4, XCALL_PIL
  98   77          ba,pt   %xcc, sys_trap
  99   78            movl  %xcc, XCALL_PIL, %g4
 100   79          SET_SIZE(idle_stop_xcall)
 101      -
 102      -#endif  /* lint */
 103   80  
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX