Function syscall_handler

Source
pub fn syscall_handler(
    abi: &mut Xv6Riscv64Abi,
    trapframe: &mut Trapframe,
) -> Result<usize, &'static str>
Expand description

Syscall handler

§Arguments

  • abi - The ABI module instance
  • trapframe - The trapframe

§Returns

The result of the syscall handler

§Errors

Returns an error if the syscall number is invalid