x86/boot: Setup correctly fs segment for bogus_real_magic
PATCH v3 1/1 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 <[email protected]>
---
Changes since v1:
- added "Fixes" comment;
- add initialisation, do not remove old one.
Changes since v2:
- move initialisation in bogus_real_magic.
--- xen/arch/x86/boot/wakeup.S | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
xen/arch/x86/boot/wakeup.S +4 -1
@@ -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
Signature · 1 line
2.34.1
Quoted 4 lines · Frediano Ziglio
bogus_real_magiccode uses fs segment so it should be initialised.Fixes d8c8fef09054 ("Provide basic Xen PM infrastructure")Signed-off-by Frediano Ziglio <[email protected]>
Reviewed-by Jan Beulich <[email protected]>