optimize 32-bit x86 system calls #25093
Labels
area: Memory Protection
area: X86
x86 Architecture (32-bit)
Enhancement
Changes/Updates/Additions to existing features
Is your enhancement proposal related to a problem? Please describe.
System calls on 32-bit x86 use the old-style
int 0x80
mechanism to trap to supervisor mode (Ring 0). There are more efficient ways to do this.Describe the solution you'd like
Use
SYSENTER
/SYSEXIT
instead to perform syscalls. This has much less overhead but requires manual stack switching. Our 64-bit port already uses the very similarSYSCALL
/SYSRET
.https://c9x.me/x86/html/file_module_x86_id_313.html
https://c9x.me/x86/html/file_module_x86_id_314.html
https://wiki.osdev.org/SYSENTER
Describe alternatives you've considered
None.
The text was updated successfully, but these errors were encountered: