xref: /DragonOS/kernel/src/arch/riscv64/syscall/mod.rs (revision 597ecc08c2444dcc8f527eb021932718b69c9cc5)
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     return Ok(());
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