Macro syscall_table

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

Define syscall table and syscall handler

ยงExample

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