arm64: LLVMLinux: Add current_stack_pointer() for arm64
authorBehan Webster <behanw@converseincode.com>
Wed, 27 Aug 2014 04:29:29 +0000 (05:29 +0100)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Thu, 23 Oct 2014 13:12:32 +0000 (14:12 +0100)
commitc2bf6c3f3ee515ee0c0fa384c1177607f34c2858
tree1bf6c5cd0a9bac7fb0a03afa9bccae49fbfd0450
parent4ccc70a2a3739ebc6bcd2bc190a8ea6aaa54f2e2
arm64: LLVMLinux: Add current_stack_pointer() for arm64

Define a global named register for current_stack_pointer. The use of this new
variable guarantees that both gcc and clang can access this register in C code.

Signed-off-by: Behan Webster <behanw@converseincode.com>
Reviewed-by: Jan-Simon Möller <dl9pf@gmx.de>
Reviewed-by: Mark Charlebois <charlebm@gmail.com>
Reviewed-by: Olof Johansson <olof@lixom.net>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/thread_info.h