Print this page
de-linting of .s files
*** 24,38 ****
/*
* Process switching routines.
*/
- #if !defined(lint)
#include "assym.h"
- #else /* lint */
- #include <sys/thread.h>
- #endif /* lint */
#include <sys/param.h>
#include <sys/asm_linkage.h>
#include <sys/mmu.h>
#include <sys/pcb.h>
--- 24,34 ----
*** 67,85 ****
* resume_from_zombie() is the same as resume except the calling thread
* is a zombie and must be put on the deathrow list after the CPU is
* off the stack.
*/
- #if defined(lint)
-
- /* ARGSUSED */
- void
- resume(kthread_id_t t)
- {}
-
- #else /* lint */
-
ENTRY(resume)
save %sp, -SA(MINFRAME), %sp ! save ins and locals
call __dtrace_probe___sched_off__cpu ! DTrace probe
mov %i0, %o0 ! arg for DTrace probe
--- 63,72 ----
*** 452,472 ****
ba %xcc, 6b
ldstub [%i0 + T_LOCK], %o0 ! delay - lock curthread's mutex
SET_SIZE(_resume_from_idle)
SET_SIZE(resume)
- #endif /* lint */
-
- #if defined(lint)
-
- /* ARGSUSED */
- void
- resume_from_zombie(kthread_id_t t)
- {}
-
- #else /* lint */
-
ENTRY(resume_from_zombie)
save %sp, -SA(MINFRAME), %sp ! save ins and locals
call __dtrace_probe___sched_off__cpu ! DTrace probe
mov %i0, %o0 ! arg for DTrace probe
--- 439,448 ----
*** 507,527 ****
!
b _resume_from_idle ! finish job of resume
ldn [%i0 + T_PROCP], %i3 ! new process
SET_SIZE(resume_from_zombie)
- #endif /* lint */
-
- #if defined(lint)
-
- /* ARGSUSED */
- void
- resume_from_intr(kthread_id_t t)
- {}
-
- #else /* lint */
-
ENTRY(resume_from_intr)
save %sp, -SA(MINFRAME), %sp ! save ins and locals
!
! We read in the fprs and call fp_save if FPRS_FEF is set
--- 483,492 ----
*** 612,624 ****
mov KPREEMPT_SYNC, %o0
ba,pt %xcc, 1b
nop
SET_SIZE(resume_from_intr)
- #endif /* lint */
-
/*
* thread_start()
*
* the current register window was crafted by thread_run() to contain
* an address of a procedure (in register %i7), and its args in registers
--- 577,587 ----
*** 626,649 ****
* that thread_start() invoked at the bottom of the stack. an exit routine
* is stored in %l0 and called when started thread returns from its called
* procedure.
*/
- #if defined(lint)
-
- void
- thread_start(void)
- {}
-
- #else /* lint */
-
ENTRY(thread_start)
mov %i0, %o0
jmpl %i7, %o7 ! call thread_run()'s start() procedure.
mov %i1, %o1
call thread_exit ! destroy thread if it returns.
nop
unimp 0
SET_SIZE(thread_start)
-
- #endif /* lint */
--- 589,602 ----