Print this page
de-linting of .s files

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4u/sunfire/ml/sysctrl_asm.s
          +++ new/usr/src/uts/sun4u/sunfire/ml/sysctrl_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 2001 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  #include <sys/param.h>
  30   28  #include <sys/errno.h>
  31   29  #include <sys/asm_linkage.h>
  32   30  #include <sys/vtrace.h>
  33   31  #include <sys/machthread.h>
  34   32  #include <sys/clock.h>
  35   33  #include <sys/asi.h>
  36   34  #include <sys/fsr.h>
  37   35  #include <sys/privregs.h>
  38   36  #include <sys/pte.h>
  39   37  #include <sys/mmu.h>
  40   38  #include <sys/spitregs.h>
  41   39  
  42      -#if defined(lint)
  43      -
  44      -#else   /* lint */
  45   40  #include "assym.h"
  46      -#endif  /* lint */
  47   41  
  48   42  #define TT_HSM  0x99
  49   43  
  50      -#if defined(lint)
  51      -void
  52      -sysctrl_freeze(void)
  53      -{}
  54      -#else /* lint */
  55   44  /*
  56   45   * This routine quiets a cpu and has it spin on a barrier.
  57   46   * It is used during memory sparing so that no memory operation
  58   47   * occurs during the memory copy.
  59   48   *
  60   49   *      Entry:
  61   50   *              %g1    - gate array base address
  62   51   *              %g2    - barrier base address
  63   52   *              %g3    - arg2
  64   53   *              %g4    - arg3
↓ open down ↓ 17 lines elided ↑ open up ↑
  82   71           nop
  83   72          ld      [%g2], %g4
  84   73          brz,pt  %g4, 1b                         ! spin until barrier true
  85   74           nop
  86   75  
  87   76  2:
  88   77          retry
  89   78          membar  #Sync
  90   79          SET_SIZE(sysctrl_freeze)
  91   80  
  92      -#endif  /* lint */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX