Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xen/x86: Drop mode-selecting ifdefs in startup_xen()

Use asm/asm.h macros instead.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>

authored by

Boris Ostrovsky and committed by
David Vrabel
4478c407 04b6b4a5

+3 -7
+3 -7
arch/x86/xen/xen-head.S
··· 47 47 shr $__ASM_SEL(2, 3), %_ASM_CX 48 48 rep __ASM_SIZE(stos) 49 49 50 - #ifdef CONFIG_X86_32 51 - mov %esi,xen_start_info 52 - mov $init_thread_union+THREAD_SIZE,%esp 53 - #else 54 - mov %rsi,xen_start_info 55 - mov $init_thread_union+THREAD_SIZE,%rsp 56 - #endif 50 + mov %_ASM_SI, xen_start_info 51 + mov $init_thread_union+THREAD_SIZE, %_ASM_SP 52 + 57 53 jmp xen_start_kernel 58 54 59 55 __FINIT