Print this page
de-linting of .s files

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4u/ml/memscrub_asm.s
          +++ new/usr/src/uts/sun4u/ml/memscrub_asm.s
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16   * If applicable, add the following below this CDDL HEADER, with the
  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 (c) 2007 by Sun Microsystems, Inc.
  24   24   */
  25   25  
  26      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  27      -
  28   26  /*
  29   27   * General machine architecture & implementation specific
  30   28   * assembly language routines.
  31   29   */
  32      -#if defined(lint)
  33      -#include <sys/types.h>
  34      -#include <sys/machsystm.h>
  35      -#include <sys/t_lock.h>
  36      -#else   /* lint */
  37   30  #include "assym.h"
  38      -#endif  /* lint */
  39   31  
  40   32  #include <sys/asm_linkage.h>
  41   33  #include <sys/eeprom.h>
  42   34  #include <sys/param.h>
  43   35  #include <sys/async.h>
  44   36  #include <sys/intreg.h>
  45   37  #include <sys/machthread.h>
  46   38  #include <sys/iocache.h>
  47   39  #include <sys/privregs.h>
  48   40  #include <sys/archsystm.h>
  49   41  
  50      -#if defined(lint)
  51      -
  52      -/*ARGSUSED*/
  53      -void
  54      -memscrub_read(caddr_t vaddr, u_int blks)
  55      -{}
  56      -
  57      -#else   /* lint */
  58      -
  59   42          !
  60   43          ! void  memscrub_read(caddr_t src, u_int blks)
  61   44          !
  62   45  
  63   46          .seg ".text"
  64   47          .align  4
  65   48  
  66   49          ENTRY(memscrub_read)
  67   50          srl     %o1, 0, %o1                     ! clear upper word of blk count
  68   51          rd      %fprs, %o2                      ! get the status of fp
↓ open down ↓ 12 lines elided ↑ open up ↑
  81   64          prefetch [%o0 + 8*64], 0
  82   65          ldda    [%o0]ASI_BLK_P, %d48
  83   66          dec     %o1
  84   67          brnz,a  %o1, 1b
  85   68          add     %o0, 64, %o0
  86   69  
  87   70          retl
  88   71          wr      %o2, 0, %fprs                   ! restore fprs (disabled)
  89   72          SET_SIZE(memscrub_read)
  90   73  
  91      -#endif  /* lint */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX