Skip to content

Use faster sysretq when returning from system calls

Jacob Lorentzon requested to merge 4lDO2/kernel:sysretq into master

This MR replaces the iretq instruction with the faster sysretq, with the exception of when RCX has been changed (e.g. by ptrace), when it still uses iretq.

Additionally, this removes the last invalid (in future rustc versions) use of #[naked] functions, namely in fn usermode.

Edited by Jacob Lorentzon

Merge request reports