Home
last modified time | relevance | path

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

/DragonOS-0.1.2/kernel/src/process/
Dfork.c349 struct thread_struct *thd = (struct thread_struct *)(pcb + 1); in process_copy_thread() local
350 memset(thd, 0, sizeof(struct thread_struct)); in process_copy_thread()
351 pcb->thread = thd; in process_copy_thread()
377 thd->rbp = in process_copy_thread()
380 thd->rbp = (uint64_t)pcb + STACK_SIZE; in process_copy_thread()
383 thd->rsp = (uint64_t)child_regs; in process_copy_thread()
384 thd->fs = current_pcb->thread->fs; in process_copy_thread()
385 thd->gs = current_pcb->thread->gs; in process_copy_thread()
389 thd->rip = (uint64_t)ret_from_system_call; in process_copy_thread()
391 thd->rip = (uint64_t)kernel_thread_func; in process_copy_thread()
[all …]