#[unsafe(no_mangle)]pub unsafe extern "C" fn syscall_entry()Expand description
x86_64 SYSCALL instruction entry point
This function handles the transition from user mode to kernel mode when a SYSCALL instruction is executed. It saves the user context, switches to the kernel stack, and calls the system call handler.
§Safety
This function must only be called by the CPU’s SYSCALL instruction. It expects specific register states as defined by the x86_64 ABI.