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 <jgross@suse.com> Link: https://lore.kernel.org/r/20211028081221.2475-5-jgross@suse.com Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
This commit is contained in:
parent
3ac876e8b5
commit
eae446b765
@ -45,13 +45,13 @@ SYM_CODE_START(startup_xen)
|
|||||||
|
|
||||||
/* Clear .bss */
|
/* Clear .bss */
|
||||||
xor %eax,%eax
|
xor %eax,%eax
|
||||||
mov $__bss_start, %_ASM_DI
|
mov $__bss_start, %rdi
|
||||||
mov $__bss_stop, %_ASM_CX
|
mov $__bss_stop, %rcx
|
||||||
sub %_ASM_DI, %_ASM_CX
|
sub %rdi, %rcx
|
||||||
shr $__ASM_SEL(2, 3), %_ASM_CX
|
shr $3, %rcx
|
||||||
rep __ASM_SIZE(stos)
|
rep stosq
|
||||||
|
|
||||||
mov %_ASM_SI, xen_start_info
|
mov %rsi, xen_start_info
|
||||||
mov initial_stack(%rip), %rsp
|
mov initial_stack(%rip), %rsp
|
||||||
|
|
||||||
/* Set up %gs.
|
/* Set up %gs.
|
||||||
|
Loading…
Reference in New Issue
Block a user