Macro syscall_table

Source
macro_rules! syscall_table {
    ( $( $name:ident = $num:expr => $func:expr ),* $(,)? ) => { ... };
}
Expand description

Define syscall table and syscall handler for xv6-riscv64

ยงExample

syscall_table! {
   Invalid = 0 => |_:&mut Xv6Riscv64Abi, _: &mut Trapframe| {
      0
  },
  SomeSyscall = 1 => sys_somecall,
}