mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
04b6b4a568
commit
4478c407ea
|
@ -47,13 +47,9 @@ ENTRY(startup_xen)
|
||||||
shr $__ASM_SEL(2, 3), %_ASM_CX
|
shr $__ASM_SEL(2, 3), %_ASM_CX
|
||||||
rep __ASM_SIZE(stos)
|
rep __ASM_SIZE(stos)
|
||||||
|
|
||||||
#ifdef CONFIG_X86_32
|
mov %_ASM_SI, xen_start_info
|
||||||
mov %esi,xen_start_info
|
mov $init_thread_union+THREAD_SIZE, %_ASM_SP
|
||||||
mov $init_thread_union+THREAD_SIZE,%esp
|
|
||||||
#else
|
|
||||||
mov %rsi,xen_start_info
|
|
||||||
mov $init_thread_union+THREAD_SIZE,%rsp
|
|
||||||
#endif
|
|
||||||
jmp xen_start_kernel
|
jmp xen_start_kernel
|
||||||
|
|
||||||
__FINIT
|
__FINIT
|
||||||
|
|
Loading…
Reference in New Issue