summaryrefslogtreecommitdiff
path: root/x86_64
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-12-03 01:31:52 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-12-03 01:35:45 +0100
commit4a1e79de904fff9b82c1b779090b8df5eb6d5c04 (patch)
tree1a01fdecf550da343718091f3c10b2370f9f0807 /x86_64
parent29d4bcaafc4c2040df27a6247603c68e7757205c (diff)
Fix 32-on-64: Fix missing es push
push %es actually cannot be compiled
Diffstat (limited to 'x86_64')
-rw-r--r--x86_64/locore.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/x86_64/locore.S b/x86_64/locore.S
index 296a8e28..f3860b89 100644
--- a/x86_64/locore.S
+++ b/x86_64/locore.S
@@ -539,7 +539,8 @@ fault_popl_gs:
jmp push_segregs /* (GS on top of stack) */
push_es:
- pushq %es /* restore es, */
+ movq %es,%rcx
+ pushq %rcx /* restore es, */
push_fs:
pushq %fs /* restore fs, */
push_gs: