Print this page
restore sparc comments
de-linting of .s files

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4v/cpu/niagara2_asm.s
          +++ new/usr/src/uts/sun4v/cpu/niagara2_asm.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   26  #include "assym.h"
  28      -#endif
  29   27  
  30   28  /*
  31   29   * Niagara2 processor specific assembly routines
  32   30   */
  33   31  
  34   32  #include <sys/asm_linkage.h>
  35   33  #include <sys/machasi.h>
  36   34  #include <sys/machparam.h>
  37   35  #include <sys/hypervisor_api.h>
  38   36  #include <sys/niagara2regs.h>
  39   37  #include <sys/machasi.h>
  40   38  #include <sys/niagaraasi.h>
  41   39  #include <vm/hat_sfmmu.h>
  42   40  
  43      -#if defined(lint)
  44      -/*ARGSUSED*/
  45      -uint64_t
  46      -hv_niagara_getperf(uint64_t perfreg, uint64_t *datap)
  47      -{ return (0); }
  48      -
  49      -/*ARGSUSED*/
  50      -uint64_t
  51      -hv_niagara_setperf(uint64_t perfreg, uint64_t data)
  52      -{ return (0); }
  53      -
  54      -#else   /* lint */
  55      -
  56   41          /*
  57   42           * hv_niagara_getperf(uint64_t perfreg, uint64_t *datap)
  58   43           */
  59   44          ENTRY(hv_niagara_getperf)
  60   45          mov     %o1, %o4                        ! save datap
  61   46  #if defined(NIAGARA2_IMPL)
  62   47          mov     HV_NIAGARA2_GETPERF, %o5
  63   48  #elif defined(VFALLS_IMPL)
  64   49          mov     HV_VFALLS_GETPERF, %o5
  65   50  #elif defined(KT_IMPL)
↓ open down ↓ 16 lines elided ↑ open up ↑
  82   67  #elif defined(VFALLS_IMPL)
  83   68          mov     HV_VFALLS_SETPERF, %o5
  84   69  #elif defined(KT_IMPL)
  85   70          mov     HV_KT_SETPERF, %o5
  86   71  #endif
  87   72          ta      FAST_TRAP
  88   73          retl
  89   74          nop
  90   75          SET_SIZE(hv_niagara_setperf)
  91   76  
  92      -#endif /* !lint */
  93      -
  94      -#if defined (lint)
  95   77  /*
  96   78   * Invalidate all of the entries within the TSB, by setting the inv bit
  97   79   * in the tte_tag field of each tsbe.
  98   80   *
  99   81   * We take advantage of the fact that the TSBs are page aligned and a
 100   82   * multiple of PAGESIZE to use ASI_BLK_INIT_xxx ASI.
 101   83   *
 102   84   * See TSB_LOCK_ENTRY and the miss handlers for how this works in practice
 103   85   * (in short, we set all bits in the upper word of the tag, and we give the
 104   86   * invalid bit precedence over other tag bits in both places).
 105   87   */
 106      -/*ARGSUSED*/
 107      -void
 108      -cpu_inv_tsb(caddr_t tsb_base, uint_t tsb_bytes)
 109      -{}
 110      -
 111      -#else /* lint */
 112      -
 113   88          ENTRY(cpu_inv_tsb)
 114   89  
 115   90          /*
 116   91           * The following code assumes that the tsb_base (%o0) is 256 bytes
 117   92           * aligned and the tsb_bytes count is multiple of 256 bytes.
 118   93           */
 119   94  
 120   95          wr      %g0, ASI_BLK_INIT_ST_QUAD_LDD_P, %asi
 121   96          set     TSBTAG_INVALID, %o2
 122   97          sllx    %o2, 32, %o2            ! INV bit in upper 32 bits of the tag
↓ open down ↓ 21 lines elided ↑ open up ↑
 144  119  
 145  120          subcc   %o1, 0x100, %o1
 146  121          bgu,pt  %ncc, 1b
 147  122          add     %o0, 0x100, %o0
 148  123  
 149  124          membar  #Sync
 150  125          retl
 151  126          nop
 152  127  
 153  128          SET_SIZE(cpu_inv_tsb)
 154      -#endif /* lint */
 155  129  
 156      -#if defined (lint)
 157      -/*
 158      - * This is CPU specific delay routine for atomic backoff. It is used in case
 159      - * of Niagara2 and VF CPUs. The rd instruction uses less resources than casx
 160      - * on these CPUs.
 161      - */
 162      -void
 163      -cpu_atomic_delay(void)
 164      -{}
 165      -#else   /* lint */
 166  130          ENTRY(cpu_atomic_delay)
 167  131          rd      %ccr, %g0
 168  132          rd      %ccr, %g0
 169  133          retl
 170  134          rd      %ccr, %g0
 171  135          SET_SIZE(cpu_atomic_delay)
 172      -#endif  /* lint */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX