arm64: LLVMLinux: Calculate current_thread_info from current_stack_pointer
commit786248705ecf5290f26534e8eef62ba6dd63b806
authorBehan Webster <behanw@converseincode.com>
Wed, 27 Aug 2014 04:29:31 +0000 (27 05:29 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 8 Sep 2014 13:39:19 +0000 (8 14:39 +0100)
tree5ffb883ae6a813dd288dad62c41a00a151e25be5
parentbb28cec4ea2f5151c08e061c6de825a8c853bbd6
arm64: LLVMLinux: Calculate current_thread_info from current_stack_pointer

Use the global current_stack_pointer to get the value of the stack pointer.
This change supports being able to compile the kernel with both gcc and clang.

Signed-off-by: Behan Webster <behanw@converseincode.com>
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
Reviewed-by: Jan-Simon Möller <dl9pf@gmx.de>
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