xref: /DragonOS/kernel/src/arch/riscv64/syscall/mod.rs (revision dfe53cf087ef4c7b6db63d992906b062dc63e93f)
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