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);
13 extern uint64_t rs_process_copy_mm(bool clone_vm, struct process_control_block *new_pcb);
15 extern int process_copy_files(uint64_t clone_flags, struct process_control_block *pcb);
16 int process_copy_flags(uint64_t clone_flags, struct process_control_block *pcb);
17 int process_copy_mm(uint64_t clone_flags, struct process_control_block *pcb);
18 int process_copy_thread(uint64_t clone_flags, struct process_control_block *pcb, uint64_t stack_sta…
19 uint64_t stack_size, struct pt_regs *current_regs);
21 extern int process_copy_sighand(uint64_t clone_flags, struct process_control_block *pcb);
22 extern int process_copy_signal(uint64_t clone_flags, struct process_control_block *pcb);
173 int process_copy_flags(uint64_t clone_flags, struct process_control_block *pcb) in process_copy_flags()
187 int process_copy_mm(uint64_t clone_flags, struct process_control_block *pcb) in process_copy_mm()
204 uint64_t new_top = ((uint64_t)new_pcb) + STACK_SIZE; in process_rewrite_rbp()
205 uint64_t old_top = (uint64_t)(current_pcb) + STACK_SIZE; in process_rewrite_rbp()
207 uint64_t *rbp = &new_regs->rbp; in process_rewrite_rbp()
208 uint64_t *tmp = rbp; in process_rewrite_rbp()
211 if ((uint64_t)*rbp >= old_top || (uint64_t)*rbp < (old_top - STACK_SIZE)) in process_rewrite_rbp()
217 uint64_t delta = old_top - *rbp; in process_rewrite_rbp()
219 uint64_t newVal = new_top - delta; in process_rewrite_rbp()
222 if (unlikely((uint64_t)newVal >= new_top || (uint64_t)newVal < (new_top - STACK_SIZE))) in process_rewrite_rbp()
227 rbp = (uint64_t *)*rbp; in process_rewrite_rbp()
242 int process_copy_thread(uint64_t clone_flags, struct process_control_block *pcb, uint64_t stack_sta… in process_copy_thread()
243 uint64_t stack_size, struct pt_regs *current_regs) in process_copy_thread()
255 uint32_t size = ((uint64_t)current_pcb) + STACK_SIZE - (uint64_t)(current_regs); in process_copy_thread()
257 child_regs = (struct pt_regs *)(((uint64_t)pcb) + STACK_SIZE - size); in process_copy_thread()
266 child_regs = (struct pt_regs *)((uint64_t)pcb + STACK_SIZE - sizeof(struct pt_regs)); 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()
286 thd->rip = (uint64_t)ret_from_intr; in process_copy_thread()
288 thd->rip = (uint64_t)kernel_thread_func; in process_copy_thread()
290 thd->rip = (uint64_t)ret_from_intr; in process_copy_thread()