Print this page
de-linting of .s files

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sparc/v9/ml/syscall_trap.s
          +++ new/usr/src/uts/sparc/v9/ml/syscall_trap.s
↓ open down ↓ 27 lines elided ↑ open up ↑
  28   28   */
  29   29  #include <sys/asm_linkage.h>
  30   30  #include <sys/machpcb.h>
  31   31  #include <sys/machthread.h>
  32   32  #include <sys/syscall.h>
  33   33  #include <sys/trap.h>
  34   34  #include <sys/machtrap.h>
  35   35  #include <sys/pcb.h>
  36   36  #include <sys/machparam.h>
  37   37  
  38      -#if !defined(lint) && !defined(__lint)
  39   38  #include "assym.h"
  40      -#endif
  41   39  
  42   40  #ifdef TRAPTRACE
  43   41  #include <sys/traptrace.h>
  44   42  #endif /* TRAPTRACE */
  45   43  
  46      -#if defined(lint) || defined(__lint)
  47      -
  48      -/*ARGSUSED*/
  49      -void
  50      -syscall_trap(struct regs *rp)   /* for tags only; not called from C */
  51      -{}
  52      -
  53      -#else /* lint */
  54      -
  55   44  #if (1 << SYSENT_SHIFT) != SYSENT_SIZE
  56   45  #error  "SYSENT_SHIFT does not correspond to size of sysent structure"
  57   46  #endif
  58   47          
  59   48  /*
  60   49   * Native System call trap handler.
  61   50   *
  62   51   * We branch here from sys_trap when a 64-bit system call occurs.
  63   52   *
  64   53   * Entry:
↓ open down ↓ 218 lines elided ↑ open up ↑
 283  272          nop
 284  273          !
 285  274          ! Post-syscall with special processing needed.
 286  275          !
 287  276  _syscall_post:
 288  277          call    post_syscall                    ! post_syscall(rvals)
 289  278          nop
 290  279          jmp     %l0 + 8                         ! return to user_rtt
 291  280          nop
 292  281          SET_SIZE(syscall_trap)
 293      -#endif  /* lint */
 294  282  
 295      -#if defined(lint) || defined(__lint)
 296      -
 297      -void
 298      -syscall_trap32(void)    /* for tags only - trap handler - not called from C */
 299      -{}
 300      -
 301      -#else /* lint */
 302      -
 303  283  /*
 304  284   * System call trap handler for ILP32 processes.
 305  285   *
 306  286   * We branch here from sys_trap when a system call occurs.
 307  287   *
 308  288   * Entry:
 309  289   *      %o0 = regs
 310  290   *
 311  291   * Usage:
 312  292   *      %l0 = saved return address
↓ open down ↓ 230 lines elided ↑ open up ↑
 543  523          !
 544  524          ! Post-syscall with special processing needed.
 545  525          !
 546  526  _syscall_post32:
 547  527          call    post_syscall                    ! post_syscall(rvals)
 548  528          nop
 549  529          jmp     %l0 + 8                         ! return to user_rtt
 550  530          nop
 551  531          SET_SIZE(syscall_trap32)
 552  532  
 553      -#endif /* lint */
 554  533  
 555      -
 556  534  /*
 557  535   * lwp_rtt - start execution in newly created LWP.
 558  536   *      Here with t_post_sys set by lwp_create, and lwp_eosys == JUSTRETURN,
 559  537   *      so that post_syscall() will run and the registers will
 560  538   *      simply be restored.
 561  539   *      This must go out through sys_rtt instead of syscall_rtt.
 562  540   */
 563      -#if defined(lint) || defined(__lint)
 564      -
 565      -void
 566      -lwp_rtt_initial(void)
 567      -{}
 568      -
 569      -void
 570      -lwp_rtt(void)
 571      -{}
 572      -
 573      -#else   /* lint */
 574  541          ENTRY_NP(lwp_rtt_initial)
 575  542          ldn     [THREAD_REG + T_STACK], %l7
 576  543          call    __dtrace_probe___proc_start
 577  544          sub     %l7, STACK_BIAS, %sp
 578  545          ba,a,pt %xcc, 0f
 579  546  
 580  547          ENTRY_NP(lwp_rtt)
 581  548          ldn     [THREAD_REG + T_STACK], %l7
 582  549          sub     %l7, STACK_BIAS, %sp
 583  550  0:
↓ open down ↓ 1 lines elided ↑ open up ↑
 585  552          nop
 586  553          call    dtrace_systrace_rtt
 587  554          add     %sp, REGOFF + STACK_BIAS, %l7
 588  555          ldx     [%l7 + O0_OFF], %o0
 589  556          call    post_syscall
 590  557          ldx     [%l7 + O1_OFF], %o1
 591  558          ba,a,pt %xcc, user_rtt
 592  559          SET_SIZE(lwp_rtt)
 593  560          SET_SIZE(lwp_rtt_initial)
 594  561  
 595      -#endif  /* lint */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX