pub fn handle_syscall<'a, K: Kernel>(
kernel: K,
id: u16,
args: K::SyscallArgs<'a>,
) -> SysCallReturnValueExpand description
Handle a system call.
This is the architecture-independent entry point for system calls.
§Requirements
The architecture-specific code calling this function MUST check if the
current thread is terminating before returning to userspace (e.g., by
calling kernel::interrupt_controller::handle_thread_termination).
Since in-kernel thread termination is advisory, this ensures that
terminating threads actually exit instead of returning to userspace.