pub fn handle_syscall<P>(
scheduler: &Scheduler<P>,
kernel_page_tables: &RwSpinlock<P::PageTable>,
number: usize,
a: usize,
b: usize,
c: usize,
d: usize,
e: usize,
) -> usizewhere
P: Platform,
Expand description
This is the architecture-independent syscall handler. It should be called by the handler that
receives the syscall (each architecture is free to do this however it wishes). The only
parameter that is guaranteed to be valid is number
; the meaning of the rest may be undefined
depending on how many parameters the specific system call takes.