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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4v/cpu/niagara_asm.s
          +++ new/usr/src/uts/sun4v/cpu/niagara_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 2006 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
  25   25  
  26      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  27      -
  28      -#if !defined(lint)
  29   26  #include "assym.h"
  30      -#endif
  31   27  
  32   28  /*
  33   29   * Niagara processor specific assembly routines
  34   30   */
  35   31  
  36   32  #include <sys/asm_linkage.h>
  37   33  #include <sys/machasi.h>
  38   34  #include <sys/machparam.h>
  39   35  #include <sys/hypervisor_api.h>
  40   36  #include <sys/niagararegs.h>
  41   37  #include <sys/machasi.h>
  42   38  #include <sys/niagaraasi.h>
  43   39  #include <vm/hat_sfmmu.h>
  44   40  
  45      -#if defined(lint)
  46      -/*ARGSUSED*/
  47      -uint64_t
  48      -hv_niagara_getperf(uint64_t perfreg, uint64_t *datap)
  49      -{ return (0); }
  50      -
  51      -/*ARGSUSED*/
  52      -uint64_t
  53      -hv_niagara_setperf(uint64_t perfreg, uint64_t data)
  54      -{ return (0); }
  55      -
  56      -#else   /* lint */
  57      -
  58   41          /*
  59   42           * hv_niagara_getperf(uint64_t perfreg, uint64_t *datap)
  60   43           */
  61   44          ENTRY(hv_niagara_getperf)
  62   45          mov     %o1, %o4                        ! save datap
  63   46          mov     HV_NIAGARA_GETPERF, %o5
  64   47          ta      FAST_TRAP
  65   48          brz,a   %o0, 1f
  66   49          stx     %o1, [%o4]
  67   50  1:
↓ open down ↓ 4 lines elided ↑ open up ↑
  72   55          /*
  73   56           * hv_niagara_setperf(uint64_t perfreg, uint64_t data)
  74   57           */
  75   58          ENTRY(hv_niagara_setperf)
  76   59          mov     HV_NIAGARA_SETPERF, %o5
  77   60          ta      FAST_TRAP
  78   61          retl
  79   62          nop
  80   63          SET_SIZE(hv_niagara_setperf)
  81   64  
  82      -#endif /* !lint */
  83      -
  84      -#if defined (lint)
  85   65  /*
  86   66   * Invalidate all of the entries within the TSB, by setting the inv bit
  87   67   * in the tte_tag field of each tsbe.
  88   68   *
  89   69   * We take advantage of the fact that the TSBs are page aligned and a
  90   70   * multiple of PAGESIZE to use ASI_BLK_INIT_xxx ASI.
  91   71   *
  92   72   * See TSB_LOCK_ENTRY and the miss handlers for how this works in practice
  93   73   * (in short, we set all bits in the upper word of the tag, and we give the
  94   74   * invalid bit precedence over other tag bits in both places).
  95   75   */
  96      -/*ARGSUSED*/
  97      -void
  98      -cpu_inv_tsb(caddr_t tsb_base, uint_t tsb_bytes)
  99      -{}
 100      -
 101      -#else /* lint */
 102      -
 103   76          ENTRY(cpu_inv_tsb)
 104   77  
 105   78          /*
 106   79           * The following code assumes that the tsb_base (%o0) is 256 bytes
 107   80           * aligned and the tsb_bytes count is multiple of 256 bytes.
 108   81           */
 109   82  
 110   83          wr      %g0, ASI_BLK_INIT_ST_QUAD_LDD_P, %asi
 111   84          set     TSBTAG_INVALID, %o2
 112   85          sllx    %o2, 32, %o2            ! INV bit in upper 32 bits of the tag
↓ open down ↓ 21 lines elided ↑ open up ↑
 134  107  
 135  108          subcc   %o1, 0x100, %o1
 136  109          bgu,pt  %ncc, 1b
 137  110          add     %o0, 0x100, %o0
 138  111  
 139  112          membar  #Sync
 140  113          retl
 141  114          nop
 142  115  
 143  116          SET_SIZE(cpu_inv_tsb)
 144      -#endif /* lint */
 145  117  
 146      -#if defined(lint)
 147      -/*ARGSUSED*/
 148      -uint64_t
 149      -hv_niagara_mmustat_conf(uint64_t buf, uint64_t *prev_buf)
 150      -{ return (0); }
 151      -
 152      -/*ARGSUSED*/
 153      -uint64_t
 154      -hv_niagara_mmustat_info(uint64_t *buf)
 155      -{ return (0); }
 156      -
 157      -#else   /* lint */
 158      -
 159  118          /*
 160  119           * hv_niagara_mmustat_conf(uint64_t buf, uint64_t *prev_buf)
 161  120           */
 162  121          ENTRY(hv_niagara_mmustat_conf)
 163  122          mov     %o1, %o4                        ! save prev_buf
 164  123          mov     HV_NIAGARA_MMUSTAT_CONF, %o5
 165  124          ta      FAST_TRAP
 166  125          retl
 167  126          stx     %o1, [%o4]
 168  127          SET_SIZE(hv_niagara_mmustat_conf)
↓ open down ↓ 2 lines elided ↑ open up ↑
 171  130           * hv_niagara_mmustat_info(uint64_t *buf)
 172  131           */
 173  132          ENTRY(hv_niagara_mmustat_info)
 174  133          mov     %o0, %o4                        ! save buf
 175  134          mov     HV_NIAGARA_MMUSTAT_INFO, %o5
 176  135          ta      FAST_TRAP
 177  136          retl
 178  137          stx     %o1, [%o4]
 179  138          SET_SIZE(hv_niagara_mmustat_info)
 180  139  
 181      -#endif /* !lint */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX