]> xenbits.xensource.com Git - xen.git/commitdiff
x86/boot: Setup correctly fs segment for bogus_real_magic
authorFrediano Ziglio <frediano.ziglio@cloud.com>
Mon, 11 Nov 2024 13:28:23 +0000 (13:28 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 11 Nov 2024 15:25:39 +0000 (15:25 +0000)
bogus_real_magic code uses fs segment so it should be initialised.

Fixes: d8c8fef09054 ("Provide basic Xen PM infrastructure")
Signed-off-by: Frediano Ziglio <frediano.ziglio@cloud.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/boot/wakeup.S

index c929fe921823038fef152bf3c1f722ff03f36771..df5ea2445739ad72f7bf6404e369301d3a2570dc 100644 (file)
@@ -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