arm64: Add this_cpu_ptr() assembler macro for use in entry.S
authorJames Morse <james.morse@arm.com>
Thu, 10 Dec 2015 10:22:39 +0000 (10:22 +0000)
committerAlex Shi <alex.shi@linaro.org>
Wed, 11 May 2016 07:57:01 +0000 (15:57 +0800)
commit95e1db8bd78d2b3f15f7d4e7896735a041c775f6
tree18da7b18a0f94f68e55d7eb247e4ba52868fd87f
parent306fe6c320ec846544b25130a2fe61e3d394cb6f
arm64: Add this_cpu_ptr() assembler macro for use in entry.S

irq_stack is a per_cpu variable, that needs to be access from entry.S.
Use an assembler macro instead of the unreadable details.

Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit aa4d5d3cbc258c355151a3903211b27359390ec5)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm64/include/asm/assembler.h
arch/arm64/kernel/entry.S