Lines Matching refs:thread
103 brnz,pt %o4, 0f ! if user thread skip
107 ! kernel thread
126 ! user thread
157 mov THREAD_REG, %o0 ! delay - arg = thread pointer
162 ! Temporarily switch to idle thread's stack
174 stn %o0, [%i1 + CPU_THREAD] ! set CPU's thread to idle
177 ! Clear and unlock previous thread's t_lock
227 ! if resume from user to kernel thread
229 ! if resume from kernel (or a different user) thread to user thread
288 ! it becomes safe for the thread to run.
296 ! Fix CPU structure to indicate new running thread.
297 ! Set pointer in new thread to the CPU structure.
300 ldx [%i0 + T_CPU], %g2 ! last CPU to run the new thread
307 stx %i1, [%i0 + T_CPU] ! set new thread's CPU pointer
309 stx %i0, [%i1 + CPU_THREAD] ! set CPU's thread pointer
311 mov %i0, THREAD_REG ! update global thread register
326 ! Switch to new thread's stack
331 ! Restore resuming thread's GSR reg and floating-point regs
364 ldx [%i0 + T_CTX], %i5 ! should resumed thread restorectx?
374 ! kernel thread
375 ! i0 = new thread
377 ! Switch to new thread's stack
383 ! Restore resuming thread's GSR reg and floating-point regs
408 call restorectx ! thread can not sleep on temp stack
409 mov THREAD_REG, %o0 ! delay slot - arg = thread pointer
419 ! If we are resuming an interrupt thread, store a starting timestamp
420 ! in the thread structure.
481 ! the zombie thread's stack can be reclaimed by the reaper.
499 stn %o2, [%i1 + CPU_THREAD] ! delay - CPU's thread = idle
503 ! %i0 = new thread
530 ! This is to resolve an issue where an interrupting thread
556 ! Fix CPU structure to indicate new running thread.
557 ! The pinned thread we're resuming already has the CPU pointer set.
560 stn %i0, [%i1 + CPU_THREAD] ! set CPU's thread pointer
562 mov %i0, THREAD_REG ! update global thread register
565 ! Switch to new thread's stack
570 clrb [%l3 + T_LOCK] ! clear intr thread's tp->t_lock
580 ! We're resuming a non-interrupt thread.
644 call thread_exit ! destroy thread if it returns.