From 4a1e79de904fff9b82c1b779090b8df5eb6d5c04 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 3 Dec 2023 01:31:52 +0100 Subject: Fix 32-on-64: Fix missing es push push %es actually cannot be compiled --- x86_64/locore.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'x86_64') 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: -- cgit v1.2.3