Print this page
de-linting of .s files

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4u/ml/mach_interrupt.s
          +++ new/usr/src/uts/sun4u/ml/mach_interrupt.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      -#include <sys/thread.h>
  29      -#else   /* lint */
  30   26  #include "assym.h"
  31      -#endif  /* lint */
  32   27  
  33   28  #include <sys/asm_linkage.h>
  34   29  #include <sys/machthread.h>
  35   30  #include <sys/machcpuvar.h>
  36   31  #include <sys/mmu.h>
  37   32  #include <sys/intreg.h>
  38   33  #include <sys/dmv.h>
  39   34  
  40   35  #ifdef TRAPTRACE
  41   36  #include <sys/traptrace.h>
  42   37  #endif /* TRAPTRACE */
  43   38  
  44   39  
  45      -#if defined(lint)
  46      -
  47      -void
  48      -vec_interrupt(void)
  49      -{}
  50      -
  51      -#else   /* lint */
  52      -
  53   40  vec_uiii_irdr_tab:
  54   41          .byte   UIII_IRDR_0, UIII_IRDR_1, UIII_IRDR_2, UIII_IRDR_3
  55   42          .byte   UIII_IRDR_4, UIII_IRDR_5, UIII_IRDR_6, UIII_IRDR_7
  56   43  
  57   44  /*
  58   45   * (TT 0x60, TL>0) Interrupt Vector Handler
  59   46   *      Globals are the Interrupt Globals.
  60   47   */
  61   48          ENTRY_NP(vec_interrupt)
  62   49          !
↓ open down ↓ 202 lines elided ↑ open up ↑
 265  252          nop
 266  253          !       generate an interrupt based on the contents of %g1
 267  254          ba,pt   %xcc,vec_interrupt_resume
 268  255          mov     %g1, %g5
 269  256          !       We are done
 270  257  3:      
 271  258          stxa    %g0, [%g0]ASI_INTR_RECEIVE_STATUS ! clear the busy bit
 272  259          retry
 273  260          SET_SIZE(dmv_vector)
 274  261  
 275      -#endif  /* lint */
 276      -
 277      -#if defined(lint)
 278      -
 279      -void
 280      -vec_intr_spurious(void)
 281      -{}
 282      -
 283      -#else   /* lint */
 284      -
 285  262          DGDEF(vec_spurious_cnt)
 286  263          .word   0
 287  264  
 288  265          ENTRY_NP(vec_intr_spurious)
 289  266          sethi   %hi(vec_spurious_cnt), %g2
 290  267          ld      [%g2 + %lo(vec_spurious_cnt)], %g2
 291  268  #ifdef TRAPTRACE
 292  269          TRACE_PTR(%g4, %g6)
 293  270          GET_TRACE_TICK(%g6, %g3)
 294  271          stxa    %g6, [%g4 + TRAP_ENT_TICK]%asi
↓ open down ↓ 38 lines elided ↑ open up ↑
 333  310          ba,pt   %xcc, sys_trap
 334  311          or      %g1, %lo(sys_tl1_panic), %g1
 335  312          !
 336  313  1:      sethi   %hi(vec_spurious_cnt), %g1
 337  314          st      %g2, [%g1 + %lo(vec_spurious_cnt)]
 338  315          retry
 339  316          SET_SIZE(vec_intr_spurious)
 340  317  
 341  318  _not_ready:     .asciz  "Interrupt Vector Receive Register not READY"
 342  319  
 343      -#endif  /* lint */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX