Print this page
de-linting of .s files

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4/ml/proc_init.s
          +++ new/usr/src/uts/sun4/ml/proc_init.s
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
  25   25  
  26      -#if defined(lint)
  27      -#include <sys/types.h>
  28      -#else   /* lint */
  29   26  #include "assym.h"
  30      -#endif  /* lint */
  31   27  
  32   28  #include <sys/asm_linkage.h>
  33   29  #include <sys/machthread.h>
  34   30  #include <sys/param.h>
  35   31  #include <sys/vm_machparam.h>
  36   32  #include <sys/privregs.h>
  37   33  #include <sys/intreg.h>
  38   34  #include <sys/vis.h>
  39   35  #include <sys/clock.h>
  40   36  #include <vm/hat_sfmmu.h>       
  41   37  
  42      -#if !defined(lint)
  43   38          .weak   cpu_feature_init
  44   39          .type   cpu_feature_init, #function
  45      -#endif  /* lint */
  46   40  
  47      -#if !defined(lint)
  48   41          .weak   cpu_early_feature_init
  49   42          .type   cpu_early_feature_init, #function
  50      -#endif  /* lint */
  51   43  
  52   44  /*
  53   45   * Processor initialization
  54   46   *
  55   47   * This is the kernel entry point for other cpus except the first one.
  56   48   * When the prom jumps to this location we are still executing with the
  57   49   * prom's trap table.  It expects the cpuid as its first parameter.
  58   50   */
  59   51  
  60      -#if defined(lint)
  61      -
  62      -/* ARGSUSED */
  63      -void
  64      -cpu_startup(int cpuid)
  65      -{}
  66      -
  67      -#else   /* lint */
  68      -
  69   52          ! allocate a temporary stack to run on while we figure who and
  70   53          ! what we are.
  71   54          .seg    ".data"
  72   55          .align  8
  73   56  etmpstk:
  74   57          .skip   2048
  75   58  tmpstk:
  76   59          .word   0
  77   60  
  78   61          ENTRY_NP(cpu_startup)
↓ open down ↓ 68 lines elided ↑ open up ↑
 147  130  1:
 148  131          !
 149  132          ! Resume the thread allocated for the CPU.
 150  133          !
 151  134          ldn     [THREAD_REG + T_PC], %i7
 152  135          ldn     [THREAD_REG + T_SP], %fp
 153  136          ret                             ! "return" into the thread
 154  137          restore                         ! WILL cause underflow
 155  138          SET_SIZE(cpu_startup)
 156  139  
 157      -#endif  /* lint */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX