Lines Matching refs:current_pcb
54 memcpy(tsk, current_pcb, sizeof(struct process_control_block)); in do_fork()
63 if ((current_pcb->flags & PF_KTHREAD) && stack_start != 0) in do_fork()
89 tsk->parent_pcb = current_pcb; in do_fork()
97 tsk->parent_pcb = current_pcb; in do_fork()
192 pcb->mm = current_pcb->mm; in process_copy_mm()
201 memcpy(new_mms, current_pcb->mm, sizeof(struct mm_struct)); in process_copy_mm()
214 uint64_t *current_pgd = (uint64_t *)phys_2_virt(current_pcb->mm->pgd); in process_copy_mm()
219 struct vm_area_struct *vma = current_pcb->mm->vmas; in process_copy_mm()
283 uint64_t old_top = (uint64_t)(current_pcb) + STACK_SIZE; in process_rewrite_rbp()
333 uint32_t size = ((uint64_t)current_pcb) + STACK_SIZE - (uint64_t)(current_regs); in process_copy_thread()
359 thd->fs = current_pcb->thread->fs; in process_copy_thread()
360 thd->gs = current_pcb->thread->gs; in process_copy_thread()