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