Lines Matching refs:regs
24 fn do_fork(regs: *mut pt_regs, clone_flags: u64, stack_start: u64, stack_size: u64) -> u64; in do_fork()
30 ($val:expr, $regs:expr) => {{
32 $regs.rax = ret as u64;
38 pub extern "C" fn syscall_handler(regs: &mut pt_regs) -> () { in syscall_handler()
39 let syscall_num = regs.rax as usize; in syscall_handler()
41 regs.r8 as usize, in syscall_handler()
42 regs.r9 as usize, in syscall_handler()
43 regs.r10 as usize, in syscall_handler()
44 regs.r11 as usize, in syscall_handler()
45 regs.r12 as usize, in syscall_handler()
46 regs.r13 as usize, in syscall_handler()
47 regs.r14 as usize, in syscall_handler()
48 regs.r15 as usize, in syscall_handler()
52 let from_user = user_mode(regs); in syscall_handler()
57 syscall_return!(do_fork(regs, 0, regs.rsp, 0), regs); in syscall_handler()
62 regs, in syscall_handler()
64 regs.rsp, in syscall_handler()
67 regs in syscall_handler()
81 syscall_return!(SystemError::EFAULT.to_posix_errno() as u64, regs); in syscall_handler()
90 regs in syscall_handler()
92 regs in syscall_handler()
109 syscall_return!(sys_rt_sigreturn(regs), regs); in syscall_handler()
116 syscall_return!(Syscall::handle(syscall_num, &args, from_user) as u64, regs); in syscall_handler()
131 regs: &mut pt_regs, in rs_do_execve()
149 return tmp_rs_execve(path, argv, envp, regs) in rs_do_execve()
164 pub extern "C" fn rs_exec_init_process(regs: &mut pt_regs) -> usize { in rs_exec_init_process()
168 let r = tmp_rs_execve(path, argv, envp, regs); in rs_exec_init_process()
181 regs: &mut pt_regs, in tmp_rs_execve()
241 regs.rdi = param.init_info().args.len() as u64; in tmp_rs_execve()
242 regs.rsi = argv_ptr.data() as u64; in tmp_rs_execve()
246 regs.rsp = user_sp.data() as u64; in tmp_rs_execve()
247 regs.rbp = user_sp.data() as u64; in tmp_rs_execve()
248 regs.rip = load_result.entry_point().data() as u64; in tmp_rs_execve()
250 regs.cs = USER_CS as u64 | 3; in tmp_rs_execve()
251 regs.ds = USER_DS as u64 | 3; in tmp_rs_execve()
252 regs.ss = USER_DS as u64 | 3; in tmp_rs_execve()
253 regs.es = 0; in tmp_rs_execve()
254 regs.rflags = 0x200; in tmp_rs_execve()
255 regs.rax = 1; in tmp_rs_execve()