We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afbd916 commit 4b246baCopy full SHA for 4b246ba
src/aero_kernel/src/arch/x86_64/syscall_handler.asm
@@ -160,5 +160,10 @@ x86_64_sysenter_handler:
160
; execute `sysexit` with canonical addresses in RCX and RDX. Otherwise we would
161
; fault in the kernel having already swapped back to the user's GS.
162
swapgs
163
+
164
+ ; SYSEXIT does *not* restore IF to re-enable interrupts.
165
+ ; This is done here, rather then when restoring RFLAGS above, since STI will
166
+ ; keep interrupts inhibited until after the *following* instruction executes.
167
+ sti
168
o64 sysexit
169
.end:
0 commit comments