Home
last modified time | relevance | path

Searched refs:r8 (Results 1 – 11 of 11) sorted by relevance

/DragonOS-0.1.7/kernel/src/syscall/
Dsyscall.c168 printk_color(regs->r9, regs->r10, (char *)regs->r8); in sys_put_string()
194 uint64_t new_brk = PAGE_2M_ALIGN(regs->r8); in sys_brk()
225 if ((int64_t)regs->r8 > 0) in sys_sbrk()
228 uint64_t new_brk = PAGE_2M_ALIGN(retval + regs->r8); in sys_sbrk()
237 … if ((__int128_t)current_pcb->mm->brk_end + (__int128_t)regs->r8 < current_pcb->mm->brk_start) in sys_sbrk()
241 uint64_t new_brk = mm_do_brk(current_pcb->mm->brk_end, (int64_t)regs->r8); // 调整堆内存空间 in sys_sbrk()
299 char *user_path = (char *)regs->r8; in sys_execve()
337 uint64_t pid = regs->r8; in sys_wait4()
381 return process_do_exit(regs->r8); in sys_exit()
386 const struct timespec *rqtp = (const struct timespec *)regs->r8; in sys_nanosleep()
/DragonOS-0.1.7/kernel/src/filesystem/vfs/
Dsyscall.rs31 let path: &CStr = unsafe { CStr::from_ptr(regs.r8 as usize as *const c_char) }; in sys_open()
53 let fd = regs.r8 as i32; in sys_close()
70 let fd = regs.r8 as i32; in sys_read()
99 let fd = regs.r8 as i32; in sys_write()
128 let fd = regs.r8 as i32; in sys_lseek()
172 if regs.r8 == 0 { in sys_chdir()
175 let ptr = regs.r8 as usize as *const c_char; in sys_chdir()
228 let fd = regs.r8 as i32; in sys_getdents()
267 let ptr = regs.r8 as usize as *const c_char; in sys_mkdir()
306 let _dfd = regs.r8; in sys_unlink_at()
[all …]
/DragonOS-0.1.7/kernel/src/mm/
Dmm-stat.c187 if (regs->r8 == NULL) in sys_mstat()
191 copy_to_user((void *)regs->r8, &stat, sizeof(struct mm_stat_t)); in sys_mstat()
193 memcpy((void *)regs->r8, &stat, sizeof(struct mm_stat_t)); in sys_mstat()
/DragonOS-0.1.7/kernel/src/process/
Dptrace.h14 unsigned long r8; member
Dprocess.c148 tmp.r8 = (uint64_t)path; in process_open_exec_file()
176 tmp_use_fs.r8 = fd; in process_load_elf_file()
182 tmp_use_fs.r8 = fd; in process_load_elf_file()
187 tmp_use_fs.r8 = fd; in process_load_elf_file()
238 tmp_use_fs.r8 = fd; in process_load_elf_file()
244 tmp_use_fs.r8 = fd; in process_load_elf_file()
249 tmp_use_fs.r8 = fd; in process_load_elf_file()
331 tmp_use_fs.r8 = fd; in process_load_elf_file()
345 tmp_use_fs.r8 = fd; in process_load_elf_file()
352 tmp_use_fs.r8 = fd; in process_load_elf_file()
[all …]
Dproc.S18 popq %r8
/DragonOS-0.1.7/kernel/src/
Dhead.S307 leaq GDT_Table(%rip), %r8
310 subq %r8, %r9
313 leaq IDT_Table(%rip), %r8
316 subq %r8, %r9
362 movq $0xffff800000000000, %r8
363 addq %r8, %rdx
/DragonOS-0.1.7/kernel/src/net/
Dsyscall.rs25 let address_family = regs.r8 as usize; in sys_socket()
78 let fd = regs.r8 as usize; in sys_setsockopt()
119 let fd = regs.r8 as usize; in sys_getsockopt()
215 let fd = regs.r8 as usize; in sys_connect()
243 let fd = regs.r8 as usize; in sys_bind()
270 let fd = regs.r8 as usize; in sys_sendto()
325 let fd = regs.r8 as usize; in sys_recvfrom()
396 let fd = regs.r8 as usize; in sys_recvmsg()
444 let fd = regs.r8 as usize; in sys_listen()
468 let fd = regs.r8 as usize; in sys_shutdown()
[all …]
/DragonOS-0.1.7/kernel/src/ipc/
Dsyscall.rs13 let fd: *mut i32 = regs.r8 as *mut i32; in sys_pipe()
Dsignal.rs71 let pid: pid_t = regs.r8 as pid_t; in sys_kill()
889 regs.r8.clone() in sys_sigaction()
895 let sig = SignalNumber::from(regs.r8 as i32); in sys_sigaction()
/DragonOS-0.1.7/kernel/src/exception/
Dentry.S40 popq %r8
92 pushq %r8