From: Andi Kleen Date: Tue, 22 Oct 2013 16:07:57 +0000 (-0700) Subject: x86: Use inline assembler instead of global register variable to get sp X-Git-Tag: v3.14-rc1~34^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dff38e3e93bbc10653a232f68077e5d031624464;p=pandora-kernel.git 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 Link: http://lkml.kernel.org/r/1382458079-24450-6-git-send-email-andi@firstfloor.org Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed