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