thread             79 kern/arch/mips/include/current.h register struct thread *curthread asm("$23");	/* s7 register */
thread             84 kern/arch/mips/include/current.h #define INIT_CURCPU(cpu, thread) (curthread = (thread), curcpu = (cpu))
thread             67 kern/arch/mips/thread/switchframe.c         stacktop = ((vaddr_t)thread->t_stack) + STACK_SIZE;
thread             97 kern/arch/mips/thread/switchframe.c 	thread->t_context = sf;
thread             60 kern/include/cpu.h 	struct thread *c_curthread;	/* Current thread on cpu */
thread             34 kern/include/threadlist.h struct thread;	/* from <thread.h> */
thread             56 kern/include/threadlist.h 	struct thread *tln_self;
thread             79 kern/include/threadlist.h struct thread *threadlist_remhead(struct threadlist *tl);
thread             80 kern/include/threadlist.h struct thread *threadlist_remtail(struct threadlist *tl);
thread             33 kern/include/threadprivate.h struct thread;		/* from <thread.h> */
thread             89 kern/thread/spl.c 	struct thread *cur = curthread;
thread            109 kern/thread/spl.c 	struct thread *cur = curthread;
thread            134 kern/thread/spl.c 	struct thread *cur = curthread;
thread             86 kern/thread/thread.c 	((uint32_t *)thread->t_stack)[0] = THREAD_STACK_MAGIC;
thread             87 kern/thread/thread.c 	((uint32_t *)thread->t_stack)[1] = THREAD_STACK_MAGIC;
thread             88 kern/thread/thread.c 	((uint32_t *)thread->t_stack)[2] = THREAD_STACK_MAGIC;
thread             89 kern/thread/thread.c 	((uint32_t *)thread->t_stack)[3] = THREAD_STACK_MAGIC;
thread            106 kern/thread/thread.c 	if (thread->t_stack != NULL) {
thread            107 kern/thread/thread.c 		KASSERT(((uint32_t*)thread->t_stack)[0] == THREAD_STACK_MAGIC);
thread            108 kern/thread/thread.c 		KASSERT(((uint32_t*)thread->t_stack)[1] == THREAD_STACK_MAGIC);
thread            109 kern/thread/thread.c 		KASSERT(((uint32_t*)thread->t_stack)[2] == THREAD_STACK_MAGIC);
thread            110 kern/thread/thread.c 		KASSERT(((uint32_t*)thread->t_stack)[3] == THREAD_STACK_MAGIC);
thread            119 kern/thread/thread.c struct thread *
thread            122 kern/thread/thread.c 	struct thread *thread;
thread            126 kern/thread/thread.c 	thread = kmalloc(sizeof(*thread));
thread            127 kern/thread/thread.c 	if (thread == NULL) {
thread            131 kern/thread/thread.c 	thread->t_name = kstrdup(name);
thread            132 kern/thread/thread.c 	if (thread->t_name == NULL) {
thread            133 kern/thread/thread.c 		kfree(thread);
thread            136 kern/thread/thread.c 	thread->t_wchan_name = "NEW";
thread            137 kern/thread/thread.c 	thread->t_state = S_READY;
thread            140 kern/thread/thread.c 	thread_machdep_init(&thread->t_machdep);
thread            141 kern/thread/thread.c 	threadlistnode_init(&thread->t_listnode, thread);
thread            142 kern/thread/thread.c 	thread->t_stack = NULL;
thread            143 kern/thread/thread.c 	thread->t_context = NULL;
thread            144 kern/thread/thread.c 	thread->t_cpu = NULL;
thread            145 kern/thread/thread.c 	thread->t_proc = NULL;
thread            148 kern/thread/thread.c 	thread->t_in_interrupt = false;
thread            149 kern/thread/thread.c 	thread->t_curspl = IPL_HIGH;
thread            150 kern/thread/thread.c 	thread->t_iplhigh_count = 1; /* corresponding to t_curspl */
thread            154 kern/thread/thread.c 	return thread;
thread            242 kern/thread/thread.c 	KASSERT(thread != curthread);
thread            243 kern/thread/thread.c 	KASSERT(thread->t_state != S_RUN);
thread            251 kern/thread/thread.c 	KASSERT(thread->t_proc == NULL);
thread            252 kern/thread/thread.c 	if (thread->t_stack != NULL) {
thread            253 kern/thread/thread.c 		kfree(thread->t_stack);
thread            255 kern/thread/thread.c 	threadlistnode_cleanup(&thread->t_listnode);
thread            256 kern/thread/thread.c 	thread_machdep_cleanup(&thread->t_machdep);
thread            259 kern/thread/thread.c 	thread->t_wchan_name = "DESTROYED";
thread            261 kern/thread/thread.c 	kfree(thread->t_name);
thread            262 kern/thread/thread.c 	kfree(thread);
thread            275 kern/thread/thread.c 	struct thread *z;
thread            350 kern/thread/thread.c 	struct thread *bootthread;
thread            483 kern/thread/thread.c 	struct thread *newthread;
thread            550 kern/thread/thread.c 	struct thread *cur, *next;
thread            733 kern/thread/thread.c 	struct thread *cur;
thread            783 kern/thread/thread.c 	struct thread *cur;
thread            862 kern/thread/thread.c 	struct thread *t;
thread           1037 kern/thread/thread.c 	struct thread *target;
thread           1062 kern/thread/thread.c 	struct thread *target;
thread            182 kern/thread/threadlist.c struct thread *
thread            200 kern/thread/threadlist.c struct thread *