x86/boot/64: Use 'push' instead of 'call' in start_cpu()
commitec2d86a9b646d93f1948569f368e2c6f5449e6c7
authorJosh Poimboeuf <jpoimboe@redhat.com>
Wed, 14 Dec 2016 03:25:35 +0000 (13 21:25 -0600)
committerIngo Molnar <mingo@kernel.org>
Wed, 14 Dec 2016 07:48:05 +0000 (14 08:48 +0100)
treece13273c0fac628752f83f8e46137a2839b150e1
parent9d85eb9119f4eeeb48e87adfcd71f752655700e9
x86/boot/64: Use 'push' instead of 'call' in start_cpu()

start_cpu() pushes a text address on the stack so that stack traces from
idle tasks will show start_cpu() at the end.  But it uses a call
instruction to do that, which is rather obtuse.  Use a straightforward
push instead.

Suggested-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/4d8a1952759721d42d1e62ba9e4a7e3ac5df8574.1481685203.git.jpoimboe@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/head_64.S