Print this page
de-linting of .s files

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4u/io/px/px_asm_4u.s
          +++ new/usr/src/uts/sun4u/io/px/px_asm_4u.s
↓ open down ↓ 16 lines elided ↑ open up ↑
  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 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   * Assembly language support for px driver
  31   29   */
  32   30   
  33   31  #include <sys/asm_linkage.h>
  34   32  #include <sys/machthread.h>
  35   33  #include <sys/privregs.h>
  36   34  
  37   35  /*LINTLIBRARY*/
  38   36  
  39      -#if defined(lint)
  40      -
  41      -/*ARGSUSED*/
  42      -int
  43      -px_phys_peek_4u(size_t size, uint64_t paddr, uint64_t *value, int type)
  44      -{ return (0); }
  45      -
  46      -/*ARGSUSED*/
  47      -int
  48      -px_phys_poke_4u(size_t size, uint64_t paddr, uint64_t *value, int type)
  49      -{ return (0); }
  50      -
  51      -#else /* lint */
  52      -
  53   37  ! px_phys_peek_4u: Do physical address read.
  54   38  !
  55   39  ! %o0 is size in bytes - Must be 8, 4, 2 or 1.  Invalid sizes default to 1.
  56   40  ! %o1 is address to read
  57   41  ! %o2 is address to save value into
  58   42  ! %o3 is 0 for little endian, non-zero for big endian
  59   43  !
  60   44  ! To be called from an on_trap environment.
  61   45  ! Interrupts will be disabled for the duration of the read, to prevent
  62   46  ! an interrupt from raising the trap level to 1 and then a possible
↓ open down ↓ 97 lines elided ↑ open up ↑
 160  144  .poke_byte:
 161  145          ldub    [%o2], %g1              ! 8-bit!
 162  146          stuba   %g1, [%o1]%asi
 163  147  
 164  148  .pokedone:
 165  149          membar  #Sync
 166  150          retl
 167  151          mov     %g0, %o0
 168  152          SET_SIZE(px_phys_poke_4u)
 169  153   
 170      -#endif
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX