Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1344594

[PATCH v4 2/2] xen/x86: Drop mode-selecting ifdefs in startup_xen()

From Boris Ostrovsky <boris.ostrovsky@oracle.com>
Newsgroups linux.kernel
Subject [PATCH v4 2/2] xen/x86: Drop mode-selecting ifdefs in startup_xen()
Date 2016-02-26 20:10 +0100
Message-ID <r6vW1-7QN-3@gated-at.bofh.it> (permalink)
References <r6vW1-7QN-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Use asm/asm.h macros instead.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
---
 arch/x86/xen/xen-head.S | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/arch/x86/xen/xen-head.S b/arch/x86/xen/xen-head.S
index 5c63d2d..de93b20 100644
--- a/arch/x86/xen/xen-head.S
+++ b/arch/x86/xen/xen-head.S
@@ -47,13 +47,9 @@ ENTRY(startup_xen)
 	shr $__ASM_SEL(2, 3), %_ASM_CX
 	rep __ASM_SIZE(stos)
 
-#ifdef CONFIG_X86_32
-	mov %esi,xen_start_info
-	mov $init_thread_union+THREAD_SIZE,%esp
-#else
-	mov %rsi,xen_start_info
-	mov $init_thread_union+THREAD_SIZE,%rsp
-#endif
+	mov %_ASM_SI, xen_start_info
+	mov $init_thread_union+THREAD_SIZE, %_ASM_SP
+
 	jmp xen_start_kernel
 
 	__FINIT
-- 
2.1.0

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v4 0/2] Clear .bss for PV guests Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2016-02-26 20:10 +0100
  [PATCH v4 2/2] xen/x86: Drop mode-selecting ifdefs in startup_xen() Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2016-02-26 20:10 +0100
  [PATCH v4 1/2] xen/x86: Zero out .bss for PV guests Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2016-02-26 20:10 +0100
  Re: [Xen-devel] [PATCH v4 0/2] Clear .bss for PV guests David Vrabel <david.vrabel@citrix.com> - 2016-03-03 17:30 +0100

csiph-web