Home
last modified time | relevance | path

Searched refs:child_regs (Results 1 – 1 of 1) sorted by relevance

/DragonOS-0.1.2/kernel/src/process/
Dfork.c353 struct pt_regs *child_regs = NULL; in process_copy_thread() local
360 child_regs = (struct pt_regs *)(((uint64_t)pcb) + STACK_SIZE - size); in process_copy_thread()
361 memcpy(child_regs, (void *)current_regs, size); in process_copy_thread()
364 process_rewrite_rbp(child_regs, pcb); in process_copy_thread()
368 child_regs = (struct pt_regs *)((uint64_t)pcb + STACK_SIZE - sizeof(struct pt_regs)); in process_copy_thread()
369 memcpy(child_regs, current_regs, sizeof(struct pt_regs)); in process_copy_thread()
371 child_regs->rsp = stack_start; in process_copy_thread()
375 child_regs->rax = 0; in process_copy_thread()
378 (uint64_t)(child_regs + 1); // 设置新的内核线程开始执行时的rbp(也就是进入ret_from_system_call时的rbp) in process_copy_thread()
383 thd->rsp = (uint64_t)child_regs; in process_copy_thread()