--- - all_intrs pushes FSGS using the PUSH_FSGS_ISR variant, so we have to do the same thing here too - don't forget to pop the value to load into %es
x86_64/locore.S | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/x86_64/locore.S b/x86_64/locore.S
index 2b8e4c44..4e341860 100644
--- a/x86_64/locore.S
+++ b/x86_64/locore.S
@@ -849,7 +849,8 @@ stack_overflowed:
* ss
*/
ast_from_interrupt:
- POP_FSGS
+ POP_FSGS_ISR
+ pop %rdx
mov %rdx,%es
pop %rdx
mov %rdx,%ds
--
2.40.1
