|
|
|
@ -230,7 +230,9 @@ pub fn syscall(id: usize, args: [usize; 6], tf: &mut TrapFrame) -> isize {
|
|
|
|
|
// custom
|
|
|
|
|
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_GETRANDOM => unimplemented("getrandom", Err(SysError::EINVAL)),
|
|
|
|
|
SYS_GETRANDOM =>sys_getrandom( args[0] as *mut u8, args[1] as usize, args[2] as u32),
|
|
|
|
|
SYS_TKILL => unimplemented("tkill", Ok(0)),
|
|
|
|
|
_ => {
|
|
|
|
|
let ret = match () {
|
|
|
|
|
#[cfg(target_arch = "x86_64")]
|
|
|
|
|