Print this page
de-linting of .s files

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4u/serengeti/ml/sbdp_asm.s
          +++ new/usr/src/uts/sun4u/serengeti/ml/sbdp_asm.s
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  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   27  /*
  30   28   * This file is through cpp before being used as
  31   29   * an inline.  It contains support routines used
  32   30   * only by DR for the copy-rename sequence.
  33   31   */
  34   32  
  35      -#if defined(lint)
  36      -#include <sys/types.h>
  37      -#include <sys/sbd_ioctl.h>
  38      -#include <sys/sbdp_priv.h>
  39      -#else
  40   33  #include "assym.h"
  41      -#endif /* lint */
  42   34  
  43   35  #include <sys/asm_linkage.h>
  44   36  #include <sys/param.h>
  45   37  #include <sys/privregs.h>
  46   38  #include <sys/machasi.h>
  47   39  #include <sys/mmu.h>
  48   40  #include <sys/machthread.h>
  49   41  #include <sys/pte.h>
  50   42  #include <sys/stack.h>
  51   43  #include <sys/vis.h>
  52   44  #include <sys/param.h>
  53   45  #include <sys/errno.h>
  54   46  #include <sys/vtrace.h>
  55   47  #include <sys/clock.h>
  56   48  #include <sys/asi.h>
  57   49  #include <sys/fsr.h>
  58   50  #include <sys/cheetahregs.h>
  59   51  #include <sys/cheetahasm.h>
  60   52  
  61      -#ifndef lint
  62      -
  63   53  /*
  64   54   * Invalidating the E$ tags is only needed on Cheetah following
  65   55   * the manual displacement flush.  The internal flush ASI used by
  66   56   * Cheetahplus, Jaguar, and Panther will invalidate the cache lines.
  67   57   *
  68   58   * arg1 = ecache_size
  69   59   * arg2 = ecache_linesize
  70   60   */
  71   61  #define ECACHE_FLUSHTAGS(arg1, arg2, tmp1)                      \
  72   62          GET_CPU_IMPL(tmp1)                                      ;\
↓ open down ↓ 29 lines elided ↑ open up ↑
 102   92            nop                                                   ;\
 103   93          set     PN_ICACHE_SIZE, reg1                            ;\
 104   94          set     PN_ICACHE_LSIZE, reg2                           ;\
 105   95          ba      2f                                              ;\
 106   96            nop                                                   ;\
 107   97  1:                                                              ;\
 108   98          set     CH_ICACHE_SIZE, reg1                            ;\
 109   99          set     CH_ICACHE_LSIZE, reg2                           ;\
 110  100  2:
 111  101  
 112      -#endif  /* !lint */
 113      -
 114      -#if defined(lint)
 115      -
 116      -/*ARGSUSED*/
 117      -void
 118      -sbdp_shutdown_asm(sbdp_shutdown_t *shutshown)
 119      -{}
 120      -
 121      -#else /* lint */
 122      -
 123  102          ENTRY_NP(sbdp_shutdown_asm)
 124  103          ! %o0 = address of sbdp_shutdown_t structure passed in
 125  104          !
 126  105          ! struct sbdp_shutdown {
 127  106          !       uint64_t        estack;    -> %o0
 128  107          !       uint64_t        flushaddr; -> %o1
 129  108          !       uint32_t        size;      -> %o2
 130  109          !       uint32_t        linesize;  -> %g1
 131  110          !       uint64_t        physaddr;  -> %o0
 132  111          ! } sbdp_shutdown_t;
↓ open down ↓ 75 lines elided ↑ open up ↑
 208  187  
 209  188          sir     0
 210  189          SET_SIZE(sbdp_shutdown_asm)
 211  190  
 212  191          .global sbdp_shutdown_asm_end
 213  192  
 214  193          .skip   2048
 215  194  
 216  195  sbdp_shutdown_asm_end:
 217  196  
 218      -#endif  /* lint */
 219  197  
 220      -
 221      -#if defined(lint)
 222      -
 223      -#else   /* lint */
 224  198  #include "assym.h"
 225      -#endif  /* lint */
 226  199  
 227  200  #define TT_HSM  0x99
 228  201  
 229      -#if defined(lint)
 230      -/* ARGSUSED */
 231      -void
 232      -sgdr_mem_blkcopy(caddr_t src, caddr_t dst, u_int linecount, u_int linesize)
 233      -{}
 234      -
 235      -void
 236      -stdmcdecode(uint64_t physaddr, uint64_t value)
 237      -{
 238      -        physaddr = physaddr;
 239      -        value = value;
 240      -}
 241      -
 242      -#else /* !lint */
 243  202  !
 244  203  ! Move a single cache line of data.  Survive UE and CE on the read
 245  204  !
 246  205  ! i0 = src va
 247  206  ! i1 = dst va
 248  207  ! i2 = line count
 249  208  ! i3 = line size
 250  209  ! i4 = cache of fpu state
 251  210  !
 252  211          ENTRY(sgdr_mem_blkcopy)
↓ open down ↓ 62 lines elided ↑ open up ↑
 315  274           */
 316  275          rdpr    %pstate, %o4
 317  276          andn    %o4, PSTATE_IE | PSTATE_AM, %o5
 318  277          wrpr    %o5, 0, %pstate         ! clear IE, AM bits
 319  278          stxa    %o1, [%o0]ASI_MC_DECODE
 320  279          membar  #Sync
 321  280          retl
 322  281          wrpr    %g0, %o4, %pstate       ! restore earlier pstate register value
 323  282          SET_SIZE(stdmcdecode)
 324  283  
 325      -#endif /* lint */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX