Print this page
de-linting of .s files

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4v/ml/mach_interrupt.s
          +++ new/usr/src/uts/sun4v/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/intreg.h>
  37   32  #include <sys/cmn_err.h>
  38   33  #include <sys/ftrace.h>
  39   34  #include <sys/machasi.h>
  40   35  #include <sys/scb.h>
  41   36  #include <sys/error.h>
  42   37  #include <sys/mmu.h>
  43   38  #include <vm/hat_sfmmu.h>
  44   39  #define INTR_REPORT_SIZE        64
  45   40  
  46   41  #ifdef TRAPTRACE
  47   42  #include <sys/traptrace.h>
  48   43  #endif /* TRAPTRACE */
  49   44  
  50      -#if defined(lint)
  51   45  
  52      -void
  53      -cpu_mondo(void)
  54      -{}
  55      -
  56      -#else   /* lint */
  57      -
  58      -
  59   46  /*
  60   47   * (TT 0x7c, TL>0) CPU Mondo Queue Handler
  61   48   *      Globals are the Interrupt Globals.
  62   49   */
  63   50          ENTRY_NP(cpu_mondo)
  64   51          !
  65   52          !       Register Usage:-
  66   53          !       %g5     PC for fasttrap TL>0 handler
  67   54          !       %g1     arg 1   
  68   55          !       %g2     arg 2   
↓ open down ↓ 119 lines elided ↑ open up ↑
 188  175          ! invalid trap handler, discard it for now
 189  176          set     cpu_mondo_inval, %g4
 190  177          ldx     [%g4], %g5
 191  178          inc     %g5
 192  179          stx     %g5, [%g4]
 193  180  3:
 194  181          retry
 195  182          /* Never Reached */
 196  183          SET_SIZE(cpu_mondo)
 197  184  
 198      -#endif /* lint */
 199  185  
 200      -#if defined(lint)
 201      -
 202      -void
 203      -dev_mondo(void)
 204      -{}
 205      -
 206      -#else   /* lint */
 207      -
 208      -
 209  186  /*
 210  187   * (TT 0x7d, TL>0) Dev Mondo Queue Handler
 211  188   *      Globals are the Interrupt Globals.
 212  189   * We only process one interrupt at a time causing us to keep
 213  190   * taking this trap till the queue is empty.
 214  191   * We really should drain the whole queue for better performance
 215  192   * but this will do for now.
 216  193   */
 217  194          ENTRY_NP(dev_mondo)
 218  195          !
↓ open down ↓ 118 lines elided ↑ open up ↑
 337  314          !
 338  315          ! setvecint_tl1 will do all the work, and finish with a retry
 339  316          !
 340  317          ba,pt   %xcc, setvecint_tl1
 341  318          mov     %g5, %g1                ! setvecint_tl1 expects inum in %g1
 342  319  
 343  320  0:      retry 
 344  321  
 345  322          /* Never Reached */
 346  323          SET_SIZE(dev_mondo)
 347      -#endif /* lint */
 348  324  
 349      -#if defined(lint)
 350      -uint64_t cpu_mondo_inval;
 351      -#else /* lint */
 352  325          .seg    ".data"
 353  326          .global cpu_mondo_inval
 354  327          .align  8
 355  328  cpu_mondo_inval:
 356  329          .skip   8
 357  330  
 358  331          .seg    ".text"
 359      -#endif  /* lint */
 360  332  
 361  333  
 362      -#if defined(lint)
 363      -
 364      -void
 365      -resumable_error(void)
 366      -{}
 367      -
 368      -#else   /* lint */
 369      -
 370  334  /*
 371  335   * (TT 0x7e, TL>0) Resumeable Error Queue Handler
 372  336   *      We keep a shadow copy of the queue in kernel buf.
 373  337   *      Read the resumable queue head and tail offset
 374  338   *      If there are entries on the queue, move them to
 375  339   *      the kernel buf, which is next to the resumable
 376  340   *      queue in the memory. Call C routine to process.
 377  341   */
 378  342          ENTRY_NP(resumable_error)
 379  343          mov     CPU_RQ_HD, %g4
↓ open down ↓ 95 lines elided ↑ open up ↑
 475  439          set     rq_overflow, %g1
 476  440          rdpr    %pil, %g4
 477  441          cmp     %g4, PIL_14
 478  442          ba      sys_trap
 479  443            movl  %icc, PIL_14, %g4
 480  444  
 481  445  0:      retry
 482  446  
 483  447          /*NOTREACHED*/
 484  448          SET_SIZE(resumable_error)
 485      -#endif /* lint */
 486  449  
 487      -#if defined(lint)
 488      -
 489      -void
 490      -nonresumable_error(void)
 491      -{}
 492      -
 493      -#else   /* lint */
 494      -
 495  450  /*
 496  451   * (TT 0x7f, TL>0) Non-resumeable Error Queue Handler
 497  452   *      We keep a shadow copy of the queue in kernel buf.
 498  453   *      Read non-resumable queue head and tail offset
 499  454   *      If there are entries on the queue, move them to
 500  455   *      the kernel buf, which is next to the non-resumable
 501  456   *      queue in the memory. Call C routine to process.
 502  457   */
 503  458          ENTRY_NP(nonresumable_error)
 504  459          mov     CPU_NRQ_HD, %g4
↓ open down ↓ 151 lines elided ↑ open up ↑
 656  611  1:      set     nrq_overflow, %g1
 657  612          rdpr    %pil, %g4
 658  613          cmp     %g4, PIL_14
 659  614          ba      sys_trap
 660  615            movl  %icc, PIL_14, %g4
 661  616  
 662  617  0:      retry
 663  618  
 664  619          /*NOTREACHED*/
 665  620          SET_SIZE(nonresumable_error)
 666      -#endif /* lint */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX