⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

syscall_entry

Function syscall_entry 

Source
#[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.