Print this page
de-linting of .s files

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4/ml/ip_ocsum.s
          +++ new/usr/src/uts/sun4/ml/ip_ocsum.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  #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/machparam.h>
  35   33  
  36      -#if defined(lint)
  37      -#include <sys/types.h>
  38      -#else   /* lint */
  39   34  #include "assym.h"
  40      -#endif  /* lint */
  41   35  
  42   36  /*
  43   37   * Prefetch considerations
  44   38   * 
  45   39   * We prefetch one cacheline ahead.  This may not be enough on Serengeti
  46   40   * systems - see default_copyout() etc which prefetch 5 lines ahead.
  47   41   * On the other hand, we expect most of the source buffers to be
  48   42   * recently used enough to be cached.
  49   43   *
  50   44   * On US-I the prefetches are inoperative.  On US-II they preload the E$;
↓ open down ↓ 17 lines elided ↑ open up ↑
  68   62   * ip_ocsum(address, halfword_count, sum)
  69   63   * Do a 16 bit one's complement sum of a given number of (16-bit)
  70   64   * halfwords. The halfword pointer must not be odd.
  71   65   *      %o0 address; %o1 count; %o2 sum accumulator; %o4 temp
  72   66   *      %g2 and %g3 used in main loop
  73   67   *
  74   68   * (from @(#)ocsum.s 1.3 89/02/24 SMI)
  75   69   *
  76   70   */
  77   71  
  78      -#if defined(lint) 
  79      -
  80      -/* ARGSUSED */
  81      -unsigned int
  82      -ip_ocsum(u_short *address, int halfword_count, unsigned int sum)
  83      -{ return (0); }
  84      -
  85      -#else   /* lint */
  86      -
  87   72          ENTRY(ip_ocsum)
  88   73  
  89   74  /*
  90   75   * On ttcp transmits, called once per ocsum_copyin but with a small
  91   76   * block ( >99.9% ).  Could be the tx hdrs?  How many acks/seg are we rxing?
  92   77   * On ttcp receives, called more than once per ocsum_copyout. Rx hdrs
  93   78   * and tx acks?
  94   79   *
  95   80   * To do: telnet and nfs traffic
  96   81   *
↓ open down ↓ 357 lines elided ↑ open up ↑
 454  439          and     %o0, %g4, %o0   ! lo16
 455  440  
 456  441          add     %o1, %o0, %i0   ! 16b result in %i0
 457  442  
 458  443          ret                     ! return
 459  444          restore
 460  445  
 461  446  
 462  447          SET_SIZE(ip_ocsum_long) ! 64-bit version
 463  448  
 464      -#endif  /* lint */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX