Lines Matching refs:uint64_t
10 extern uint64_t rs_procfs_register_pid(uint64_t);
11 extern uint64_t rs_procfs_unregister_pid(uint64_t);
14 extern int process_copy_files(uint64_t clone_flags, struct process_control_block *pcb);
15 int process_copy_flags(uint64_t clone_flags, struct process_control_block *pcb);
16 int process_copy_mm(uint64_t clone_flags, struct process_control_block *pcb);
17 int process_copy_thread(uint64_t clone_flags, struct process_control_block *pcb, uint64_t stack_sta…
18 uint64_t stack_size, struct pt_regs *current_regs);
20 extern int process_copy_sighand(uint64_t clone_flags, struct process_control_block *pcb);
21 extern int process_copy_signal(uint64_t clone_flags, struct process_control_block *pcb);
172 int process_copy_flags(uint64_t clone_flags, struct process_control_block *pcb) in process_copy_flags()
186 int process_copy_mm(uint64_t clone_flags, struct process_control_block *pcb) in process_copy_mm()
214 uint64_t *current_pgd = (uint64_t *)phys_2_virt(current_pcb->mm->pgd); in process_copy_mm()
216 uint64_t *new_pml4t = (uint64_t *)phys_2_virt(new_mms->pgd); in process_copy_mm()
235 uint64_t pa = alloc_pages(ZONE_NORMAL, 1, PAGE_PGT_MAPPED)->addr_phys; in process_copy_mm()
253 uint64_t map_size = PAGE_4K_ALIGN(vma_size); in process_copy_mm()
254 uint64_t va = (uint64_t)kmalloc(map_size, 0); in process_copy_mm()
282 uint64_t new_top = ((uint64_t)new_pcb) + STACK_SIZE; in process_rewrite_rbp()
283 uint64_t old_top = (uint64_t)(current_pcb) + STACK_SIZE; in process_rewrite_rbp()
285 uint64_t *rbp = &new_regs->rbp; in process_rewrite_rbp()
286 uint64_t *tmp = rbp; in process_rewrite_rbp()
289 if ((uint64_t)*rbp >= old_top || (uint64_t)*rbp < (old_top - STACK_SIZE)) in process_rewrite_rbp()
295 uint64_t delta = old_top - *rbp; in process_rewrite_rbp()
297 uint64_t newVal = new_top - delta; in process_rewrite_rbp()
300 if (unlikely((uint64_t)newVal >= new_top || (uint64_t)newVal < (new_top - STACK_SIZE))) in process_rewrite_rbp()
305 rbp = (uint64_t *)*rbp; in process_rewrite_rbp()
320 int process_copy_thread(uint64_t clone_flags, struct process_control_block *pcb, uint64_t stack_sta… in process_copy_thread()
321 uint64_t stack_size, struct pt_regs *current_regs) in process_copy_thread()
333 uint32_t size = ((uint64_t)current_pcb) + STACK_SIZE - (uint64_t)(current_regs); in process_copy_thread()
335 child_regs = (struct pt_regs *)(((uint64_t)pcb) + STACK_SIZE - size); in process_copy_thread()
344 child_regs = (struct pt_regs *)((uint64_t)pcb + STACK_SIZE - sizeof(struct pt_regs)); in process_copy_thread()
353 thd->rbp = (uint64_t)(child_regs + 1); // 设置新的内核线程开始执行时的rbp(也就是进入ret_from_intr时的rbp) in process_copy_thread()
355 thd->rbp = (uint64_t)pcb + STACK_SIZE; in process_copy_thread()
358 thd->rsp = (uint64_t)child_regs; in process_copy_thread()
364 thd->rip = (uint64_t)ret_from_intr; in process_copy_thread()
366 thd->rip = (uint64_t)kernel_thread_func; in process_copy_thread()
368 thd->rip = (uint64_t)ret_from_intr; in process_copy_thread()