bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RFC PATCH] x86_64: Attempt to fix ast_from_interrupt


From: Sergey Bugaev
Subject: [RFC PATCH] x86_64: Attempt to fix ast_from_interrupt
Date: Wed, 17 May 2023 21:11:50 +0300

---

- 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]