Skip to content

Commit eae446b

Browse files
jgross1bostrovs
authored andcommitted
x86/xen: remove 32-bit awareness from startup_xen
startup_xen is still 32-bit aware, even if no longer needed. Replace the register macros by the 64-bit register names for making it more readable. Signed-off-by: Juergen Gross <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Boris Ostrovsky <[email protected]> Signed-off-by: Boris Ostrovsky <[email protected]>
1 parent 3ac876e commit eae446b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

arch/x86/xen/xen-head.S

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ SYM_CODE_START(startup_xen)
4545

4646
/* Clear .bss */
4747
xor %eax,%eax
48-
mov $__bss_start, %_ASM_DI
49-
mov $__bss_stop, %_ASM_CX
50-
sub %_ASM_DI, %_ASM_CX
51-
shr $__ASM_SEL(2, 3), %_ASM_CX
52-
rep __ASM_SIZE(stos)
48+
mov $__bss_start, %rdi
49+
mov $__bss_stop, %rcx
50+
sub %rdi, %rcx
51+
shr $3, %rcx
52+
rep stosq
5353

54-
mov %_ASM_SI, xen_start_info
54+
mov %rsi, xen_start_info
5555
mov initial_stack(%rip), %rsp
5656

5757
/* Set up %gs.

0 commit comments

Comments
 (0)