Expand description
x86_64 system call entry point and SYSCALL/SYSRET MSR configuration.
This module configures the CPU’s SYSCALL/SYSRET mechanism for user-kernel transitions. The key components are:
syscall_entry: naked assembly handler invoked by the SYSCALL instructionPerCpuData: per-CPU storage for kernel/user RSP, accessed via GS segmentinit_syscall: MSR configuration (EFER, STAR, LSTAR, SFMASK, KernelGsBase)
Structs§
- PerCpu
Data - Per-CPU data accessed via GS segment register during syscall entry/exit.
- Syscall
Frame - Saved user register frame from SYSCALL entry.
Functions§
- get_
saved_ user_ rsp - Get the user RSP saved by syscall_entry into per-CPU data.
- get_
syscall_ frame - Get a reference to the saved syscall register frame.
- init_
syscall - Initialize SYSCALL/SYSRET support.
- per_
cpu_ data_ ptr - Get a mutable pointer to the per-CPU data.
- syscall_
entry ⚠ - x86_64 SYSCALL instruction entry point