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

[PATCH] x86/boot: Setup correctly fs segment for bogus_real_magic



bogus_real_magic code uses fs segment so it should be initialised.

Signed-off-by: Frediano Ziglio <frediano.ziglio@xxxxxxxxx>
---
 xen/arch/x86/boot/wakeup.S | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
OT: Seen another similar patch on ML I suppose this part of code is not that
tested. Also, considering EFI code, do we always have VGA available in these
cases?

diff --git a/xen/arch/x86/boot/wakeup.S b/xen/arch/x86/boot/wakeup.S
index 08447e1934..b73b947bdf 100644
--- a/xen/arch/x86/boot/wakeup.S
+++ b/xen/arch/x86/boot/wakeup.S
@@ -20,6 +20,8 @@ ENTRY(wakeup_start)
         movw    %ax, %ds
         movw    %ax, %ss        # A stack required for BIOS call
         movw    $wakesym(wakeup_stack), %sp
+        movw    $0xb800, %ax
+        movw    %ax, %fs
 
         pushl   $0              # Kill dangerous flag early
         popfl
@@ -44,8 +46,6 @@ ENTRY(wakeup_start)
         call    mode_setw
 
 1:      # Show some progress if VGA is resumed
-        movw    $0xb800, %ax
-        movw    %ax, %fs
         movw    $0x0e00 + 'L', %fs:(0x10)
 
         lidt    wakesym(idt_48)
-- 
2.34.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.