Lines Matching refs:current_pcb
52 memcpy(tsk, current_pcb, sizeof(struct process_control_block)); in do_fork()
61 if ((current_pcb->flags & PF_KTHREAD) && stack_start != 0) in do_fork()
87 tsk->parent_pcb = current_pcb; in do_fork()
95 tsk->parent_pcb = current_pcb; in do_fork()
194 if (current_pcb->fds[i] == NULL) in process_copy_files()
198 memcpy(pcb->fds[i], current_pcb->fds[i], sizeof(struct vfs_file_t)); in process_copy_files()
217 pcb->mm = current_pcb->mm; in process_copy_mm()
226 memcpy(new_mms, current_pcb->mm, sizeof(struct mm_struct)); in process_copy_mm()
239 uint64_t *current_pgd = (uint64_t *)phys_2_virt(current_pcb->mm->pgd); in process_copy_mm()
244 struct vm_area_struct *vma = current_pcb->mm->vmas; in process_copy_mm()
308 uint64_t old_top = (uint64_t)(current_pcb) + STACK_SIZE; in process_rewrite_rbp()
358 uint32_t size = ((uint64_t)current_pcb) + STACK_SIZE - (uint64_t)(current_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()