Use faster sysretq when returning from system calls
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