diff options
author | Boris Ostrovsky <boris.ostrovsky@oracle.com> | 2016-02-26 14:02:37 -0500 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2016-03-03 11:20:22 -0500 |
commit | 4478c407ea3810aad300ef8d4cee23b3d708461b (patch) | |
tree | 553f62c0dc15c664bd916509363ab5cfad7fe46d | |
parent | 04b6b4a56884327c1648c517f1f46a2638f04c9d (diff) |
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>
-rw-r--r-- | arch/x86/xen/xen-head.S | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/x86/xen/xen-head.S b/arch/x86/xen/xen-head.S index 5c63d2d955bb..de93b20fa0d2 100644 --- a/arch/x86/xen/xen-head.S +++ b/arch/x86/xen/xen-head.S | |||
@@ -47,13 +47,9 @@ ENTRY(startup_xen) | |||
47 | shr $__ASM_SEL(2, 3), %_ASM_CX | 47 | shr $__ASM_SEL(2, 3), %_ASM_CX |
48 | rep __ASM_SIZE(stos) | 48 | rep __ASM_SIZE(stos) |
49 | 49 | ||
50 | #ifdef CONFIG_X86_32 | 50 | mov %_ASM_SI, xen_start_info |
51 | mov %esi,xen_start_info | 51 | mov $init_thread_union+THREAD_SIZE, %_ASM_SP |
52 | mov $init_thread_union+THREAD_SIZE,%esp | 52 | |
53 | #else | ||
54 | mov %rsi,xen_start_info | ||
55 | mov $init_thread_union+THREAD_SIZE,%rsp | ||
56 | #endif | ||
57 | jmp xen_start_kernel | 53 | jmp xen_start_kernel |
58 | 54 | ||
59 | __FINIT | 55 | __FINIT |