curthread 79 kern/arch/mips/include/current.h register struct thread *curthread asm("$23"); /* s7 register */
curthread 84 kern/arch/mips/include/current.h #define INIT_CURCPU(cpu, thread) (curthread = (thread), curcpu = (cpu))
curthread 145 kern/arch/mips/locore/trap.c if (curthread != NULL && curthread->t_stack != NULL) {
curthread 146 kern/arch/mips/locore/trap.c KASSERT((vaddr_t)tf > (vaddr_t)curthread->t_stack);
curthread 147 kern/arch/mips/locore/trap.c KASSERT((vaddr_t)tf < (vaddr_t)(curthread->t_stack
curthread 156 kern/arch/mips/locore/trap.c old_in = curthread->t_in_interrupt;
curthread 157 kern/arch/mips/locore/trap.c curthread->t_in_interrupt = 1;
curthread 176 kern/arch/mips/locore/trap.c if (curthread->t_curspl == 0) {
curthread 177 kern/arch/mips/locore/trap.c KASSERT(curthread->t_curspl == 0);
curthread 178 kern/arch/mips/locore/trap.c KASSERT(curthread->t_iplhigh_count == 0);
curthread 179 kern/arch/mips/locore/trap.c curthread->t_curspl = IPL_HIGH;
curthread 180 kern/arch/mips/locore/trap.c curthread->t_iplhigh_count++;
curthread 190 kern/arch/mips/locore/trap.c KASSERT(curthread->t_curspl == IPL_HIGH);
curthread 191 kern/arch/mips/locore/trap.c KASSERT(curthread->t_iplhigh_count == 1);
curthread 192 kern/arch/mips/locore/trap.c curthread->t_iplhigh_count--;
curthread 193 kern/arch/mips/locore/trap.c curthread->t_curspl = 0;
curthread 196 kern/arch/mips/locore/trap.c curthread->t_in_interrupt = old_in;
curthread 217 kern/arch/mips/locore/trap.c KASSERT(curthread->t_curspl == 0);
curthread 218 kern/arch/mips/locore/trap.c KASSERT(curthread->t_iplhigh_count == 0);
curthread 299 kern/arch/mips/locore/trap.c if (curthread != NULL &&
curthread 300 kern/arch/mips/locore/trap.c curthread->t_machdep.tm_badfaultfunc != NULL) {
curthread 301 kern/arch/mips/locore/trap.c tf->tf_epc = (vaddr_t) curthread->t_machdep.tm_badfaultfunc;
curthread 330 kern/arch/mips/locore/trap.c if (curthread->t_stack == NULL) {
curthread 334 kern/arch/mips/locore/trap.c cputhreads[curcpu->c_number] = (vaddr_t)curthread;
curthread 335 kern/arch/mips/locore/trap.c cpustacks[curcpu->c_number] = (vaddr_t)curthread->t_stack + STACK_SIZE;
curthread 379 kern/arch/mips/locore/trap.c cputhreads[curcpu->c_number] = (vaddr_t)curthread;
curthread 380 kern/arch/mips/locore/trap.c cpustacks[curcpu->c_number] = (vaddr_t)curthread->t_stack + STACK_SIZE;
curthread 85 kern/arch/mips/syscall/syscall.c KASSERT(curthread != NULL);
curthread 86 kern/arch/mips/syscall/syscall.c KASSERT(curthread->t_curspl == 0);
curthread 87 kern/arch/mips/syscall/syscall.c KASSERT(curthread->t_iplhigh_count == 0);
curthread 166 kern/arch/mips/syscall/syscall.c KASSERT(curthread->t_curspl == 0);
curthread 168 kern/arch/mips/syscall/syscall.c KASSERT(curthread->t_iplhigh_count == 0);
curthread 87 kern/arch/sys161/dev/lamebus_machdep.c KASSERT(curthread->t_curspl > 0);
curthread 260 kern/arch/sys161/dev/lamebus_machdep.c KASSERT(curthread->t_curspl > 0);
curthread 228 kern/dev/generic/console.c else if (curthread->t_in_interrupt || curthread->t_iplhigh_count > 0) {
curthread 244 kern/dev/generic/console.c else if (curthread->t_in_interrupt || curthread->t_iplhigh_count > 0) {
curthread 260 kern/dev/generic/console.c else if (curthread->t_in_interrupt || curthread->t_iplhigh_count > 0) {
curthread 273 kern/dev/generic/console.c KASSERT(!curthread->t_in_interrupt && curthread->t_iplhigh_count == 0);
curthread 55 kern/include/current.h #define curcpu curthread->t_cpu
curthread 56 kern/include/current.h #define CURCPU_EXISTS() (curthread != NULL)
curthread 66 kern/include/current.h #define curproc (curthread->t_proc)
curthread 101 kern/lib/kprintf.c && curthread->t_in_interrupt == false
curthread 102 kern/lib/kprintf.c && curthread->t_iplhigh_count == 0;
curthread 117 kern/startup/main.c KASSERT(curthread->t_curspl > 0);
curthread 119 kern/startup/main.c KASSERT(curthread->t_curspl == 0);
curthread 40 kern/syscall/proc_syscalls.c proc_remthread(curthread);
curthread 89 kern/thread/spl.c struct thread *cur = curthread;
curthread 109 kern/thread/spl.c struct thread *cur = curthread;
curthread 134 kern/thread/spl.c struct thread *cur = curthread;
curthread 101 kern/thread/synch.c KASSERT(curthread->t_in_interrupt == false);
curthread 242 kern/thread/thread.c KASSERT(thread != curthread);
curthread 278 kern/thread/thread.c KASSERT(z != curthread);
curthread 377 kern/thread/thread.c curthread->t_cpu = curcpu;
curthread 378 kern/thread/thread.c curcpu->c_curthread = curthread;
curthread 381 kern/thread/thread.c KASSERT(curthread->t_proc != NULL);
curthread 398 kern/thread/thread.c KASSERT(curthread != NULL);
curthread 508 kern/thread/thread.c newthread->t_cpu = curthread->t_cpu;
curthread 512 kern/thread/thread.c proc = curthread->t_proc;
curthread 553 kern/thread/thread.c DEBUGASSERT(curcpu->c_curthread == curthread);
curthread 554 kern/thread/thread.c DEBUGASSERT(curthread->t_cpu == curcpu->c_self);
curthread 559 kern/thread/thread.c cur = curthread;
curthread 652 kern/thread/thread.c curthread = next;
curthread 735 kern/thread/thread.c cur = curthread;
curthread 785 kern/thread/thread.c cur = curthread;
curthread 920 kern/thread/thread.c if (t == curthread) {
curthread 1026 kern/thread/thread.c KASSERT(!curthread->t_in_interrupt);
curthread 102 kern/vm/copyinout.c longjmp(curthread->t_machdep.tm_copyjmp, 1);
curthread 167 kern/vm/copyinout.c curthread->t_machdep.tm_badfaultfunc = copyfail;
curthread 169 kern/vm/copyinout.c result = setjmp(curthread->t_machdep.tm_copyjmp);
curthread 171 kern/vm/copyinout.c curthread->t_machdep.tm_badfaultfunc = NULL;
curthread 177 kern/vm/copyinout.c curthread->t_machdep.tm_badfaultfunc = NULL;
curthread 203 kern/vm/copyinout.c curthread->t_machdep.tm_badfaultfunc = copyfail;
curthread 205 kern/vm/copyinout.c result = setjmp(curthread->t_machdep.tm_copyjmp);
curthread 207 kern/vm/copyinout.c curthread->t_machdep.tm_badfaultfunc = NULL;
curthread 213 kern/vm/copyinout.c curthread->t_machdep.tm_badfaultfunc = NULL;
curthread 276 kern/vm/copyinout.c curthread->t_machdep.tm_badfaultfunc = copyfail;
curthread 278 kern/vm/copyinout.c result = setjmp(curthread->t_machdep.tm_copyjmp);
curthread 280 kern/vm/copyinout.c curthread->t_machdep.tm_badfaultfunc = NULL;
curthread 286 kern/vm/copyinout.c curthread->t_machdep.tm_badfaultfunc = NULL;
curthread 309 kern/vm/copyinout.c curthread->t_machdep.tm_badfaultfunc = copyfail;
curthread 311 kern/vm/copyinout.c result = setjmp(curthread->t_machdep.tm_copyjmp);
curthread 313 kern/vm/copyinout.c curthread->t_machdep.tm_badfaultfunc = NULL;
curthread 319 kern/vm/copyinout.c curthread->t_machdep.tm_badfaultfunc = NULL;