From 7d5781d526fb56f4858e9d9ac38e8867ab178a68 Mon Sep 17 00:00:00 2001 From: Frediano Ziglio Date: Mon, 11 Nov 2024 13:28:23 +0000 Subject: [PATCH] x86/boot: Setup correctly fs segment for bogus_real_magic bogus_real_magic code uses fs segment so it should be initialised. Fixes: d8c8fef09054 ("Provide basic Xen PM infrastructure") Signed-off-by: Frediano Ziglio Reviewed-by: Jan Beulich --- xen/arch/x86/boot/wakeup.S | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/boot/wakeup.S b/xen/arch/x86/boot/wakeup.S index c929fe9218..df5ea24457 100644 --- a/xen/arch/x86/boot/wakeup.S +++ b/xen/arch/x86/boot/wakeup.S @@ -77,8 +77,11 @@ check_vesaw: ret bogus_real_magic: + movw $0xb800, %ax + movw %ax, %fs +1: movw $0x0e00 + 'B', %fs:(0x12) - jmp bogus_real_magic + jmp 1b .align 4 real_magic: .long 0x12345678 -- 2.39.5