Lines Matching refs:regs
51 …ve(const char *filename, const char *const argv[], const char *const envp[], struct pt_regs *regs);
52 extern uint64_t rs_exec_init_process(struct pt_regs *regs);
201 struct pt_regs *regs; in initial_kernel_thread() local
216 regs = (struct pt_regs *)current_pcb->thread->rsp; in initial_kernel_thread()
279 struct pt_regs regs; in kernel_thread() local
281 memset(®s, 0, sizeof(regs)); in kernel_thread()
284 regs.rbx = (ul)fn; in kernel_thread()
286 regs.rdx = (ul)arg; in kernel_thread()
288 regs.ds = KERNEL_DS; in kernel_thread()
290 regs.es = KERNEL_DS; in kernel_thread()
292 regs.cs = KERNEL_CS; in kernel_thread()
294 regs.ss = KERNEL_DS; in kernel_thread()
298 regs.rflags = (1 << 9); in kernel_thread()
301 regs.rip = (ul)kernel_thread_func; in kernel_thread()
306 return do_fork(®s, flags | CLONE_VM, 0, 0); in kernel_thread()