Searched refs:thd (Results 1 – 1 of 1) sorted by relevance
246 struct thread_struct *thd = (struct thread_struct *)(pcb + 1); in process_copy_thread() local247 memset(thd, 0, sizeof(struct thread_struct)); in process_copy_thread()248 pcb->thread = thd; in process_copy_thread()275 thd->rbp = (uint64_t)(child_regs + 1); // 设置新的内核线程开始执行时的rbp(也就是进入ret_from_intr时的rbp) in process_copy_thread()277 thd->rbp = (uint64_t)pcb + STACK_SIZE; in process_copy_thread()280 thd->rsp = (uint64_t)child_regs; in process_copy_thread()281 thd->fs = current_pcb->thread->fs; in process_copy_thread()282 thd->gs = current_pcb->thread->gs; in process_copy_thread()286 thd->rip = (uint64_t)ret_from_intr; in process_copy_thread()288 thd->rip = (uint64_t)kernel_thread_func; in process_copy_thread()[all …]