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