1 /// 系统调用号 2 pub mod nr; 3 use crate::{exception::InterruptArch, syscall::SystemError}; 4 5 use super::{interrupt::TrapFrame, CurrentIrqArch}; 6 7 /// 系统调用初始化 8 pub fn arch_syscall_init() -> Result<(), SystemError> { 9 unimplemented!("arch_syscall_init") 10 } 11 12 #[no_mangle] 13 pub extern "C" fn syscall_handler(frame: &mut TrapFrame) -> () { 14 unsafe { 15 CurrentIrqArch::interrupt_enable(); 16 } 17 unimplemented!("syscall_handler") 18 } 19