Lines Matching refs:thread0
274 PCPU_SET(curthread, &thread0);
287 proc_linkup0(&proc0, &thread0);
292 thread0.td_kstack = kstack0;
293 thread0.td_kstack_pages = KSTACK_PAGES;
296 * thread0 is the only thread that has kstack located in KSEG0
299 thread0.td_pcb = (struct pcb *)(thread0.td_kstack +
300 thread0.td_kstack_pages * PAGE_SIZE) - 1;
301 thread0.td_frame = &thread0.td_pcb->pcb_regs;
306 PCPU_SET(curpcb, thread0.td_pcb);
308 * There is no need to initialize md_upte array for thread0 as it's