Lines Matching refs:thread
58 ….mm = &initial_mm, .thread = &initial_thread, .addr_limit = 0xffffffffffffffff, .pid = 0, .priorit…
111 initial_tss[proc_current_cpu_id].rsp0 = next->thread->rbp; in __switch_to()
118 __asm__ __volatile__("movq %%fs, %0 \n\t" : "=a"(prev->thread->fs)); in __switch_to()
119 __asm__ __volatile__("movq %%gs, %0 \n\t" : "=a"(prev->thread->gs)); in __switch_to()
121 __asm__ __volatile__("movq %0, %%fs \n\t" ::"a"(next->thread->fs)); in __switch_to()
122 __asm__ __volatile__("movq %0, %%gs \n\t" ::"a"(next->thread->gs)); in __switch_to()
502 current_pcb->thread->rip = (ul)ret_from_system_call; in initial_kernel_thread()
503 current_pcb->thread->rsp = (ul)current_pcb + STACK_SIZE - sizeof(struct pt_regs); in initial_kernel_thread()
504 current_pcb->thread->fs = USER_DS | 0x3; in initial_kernel_thread()
506 current_pcb->thread->gs = USER_DS | 0x3; in initial_kernel_thread()
512 regs = (struct pt_regs *)current_pcb->thread->rsp; in initial_kernel_thread()
519 "jmp do_execve \n\t" ::"D"(current_pcb->thread->rsp), in initial_kernel_thread()
520 … "m"(current_pcb->thread->rsp), "m"(current_pcb->thread->rip), "S"("/bin/shell.elf"), "c"(NULL), in initial_kernel_thread()