|
|
@ -269,11 +269,12 @@ pub fn syscall(id: usize, args: [usize; 6], tf: &mut TrapFrame) -> isize {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
SYS_DUP3 => sys_dup2(args[0], args[1]), // TODO: handle `flags`
|
|
|
|
SYS_DUP3 => sys_dup2(args[0], args[1]), // TODO: handle `flags`
|
|
|
|
SYS_PIPE2 => sys_pipe(args[0] as *mut u32), // TODO: handle `flags`
|
|
|
|
SYS_PIPE2 => sys_pipe(args[0] as *mut u32), // TODO: handle `flags`
|
|
|
|
SYS_PRLIMIT64 => {
|
|
|
|
SYS_PRLIMIT64 => sys_prlimit64(
|
|
|
|
warn!("sys_prlimit64 is unimplemented");
|
|
|
|
args[0],
|
|
|
|
Ok(0)
|
|
|
|
args[1],
|
|
|
|
}
|
|
|
|
args[2] as *const RLimit,
|
|
|
|
|
|
|
|
args[3] as *mut RLimit,
|
|
|
|
|
|
|
|
),
|
|
|
|
// custom temporary syscall
|
|
|
|
// custom temporary syscall
|
|
|
|
SYS_MAP_PCI_DEVICE => sys_map_pci_device(args[0], args[1]),
|
|
|
|
SYS_MAP_PCI_DEVICE => sys_map_pci_device(args[0], args[1]),
|
|
|
|
SYS_GET_PADDR => sys_get_paddr(args[0] as *const u64, args[1] as *mut u64, args[2]),
|
|
|
|
SYS_GET_PADDR => sys_get_paddr(args[0] as *const u64, args[1] as *mut u64, args[2]),
|
|
|
|