summaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/spinlock.c
diff options
context:
space:
mode:
authorAndi Kleen2013-10-22 18:07:57 +0200
committerH. Peter Anvin2014-01-30 07:17:17 +0100
commitdff38e3e93bbc10653a232f68077e5d031624464 (patch)
tree084ea355a1f7d84e3d1a33759e3105ff116e2d28 /arch/x86/xen/spinlock.c
parentx86, asmlinkage, paravirt: Make paravirt thunks global (diff)
downloadkernel-qcow2-linux-dff38e3e93bbc10653a232f68077e5d031624464.tar.gz
kernel-qcow2-linux-dff38e3e93bbc10653a232f68077e5d031624464.tar.xz
kernel-qcow2-linux-dff38e3e93bbc10653a232f68077e5d031624464.zip
x86: Use inline assembler instead of global register variable to get sp
LTO in gcc 4.6/47. has trouble with global register variables. They were used to read the stack pointer. Use a simple inline assembler statement with a mov instead. This also helps LLVM/clang, which does not support global register variables. [ hpa: Ideally this should become a builtin in both gcc and clang. ] v2: More general asm constraint. Fix description (Jan Beulich) Signed-off-by: Andi Kleen <ak@linux.intel.com> Link: http://lkml.kernel.org/r/1382458079-24450-6-git-send-email-andi@firstfloor.org Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/xen/spinlock.c')
0 files changed, 0 insertions, 0 deletions