summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/asm/memory.h
diff options
context:
space:
mode:
authorArd Biesheuvel2017-07-15 18:23:13 +0200
committerMark Rutland2017-08-15 19:35:47 +0200
commit8ea41b11ef746e1ac97f8c90911e5c61f8bd5cc0 (patch)
tree68ad3c4487ce3ae68ae2b4b6f32519ca60ccf19c /arch/arm64/include/asm/memory.h
parentarm64: factor out entry stack manipulation (diff)
downloadkernel-qcow2-linux-8ea41b11ef746e1ac97f8c90911e5c61f8bd5cc0.tar.gz
kernel-qcow2-linux-8ea41b11ef746e1ac97f8c90911e5c61f8bd5cc0.tar.xz
kernel-qcow2-linux-8ea41b11ef746e1ac97f8c90911e5c61f8bd5cc0.zip
arm64: assembler: allow adr_this_cpu to use the stack pointer
Given that adr_this_cpu already requires a temp register in addition to the destination register, tweak the instruction sequence so that sp may be used as well. This will simplify switching to per-cpu stacks in subsequent patches. While this limits the range of adr_this_cpu, to +/-4GiB, we don't currently use adr_this_cpu in modules, and this is not problematic for the main kernel image. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> [Mark: add more commit text] Signed-off-by: Mark Rutland <mark.rutland@arm.com> Reviewed-by: Will Deacon <will.deacon@arm.com> Tested-by: Laura Abbott <labbott@redhat.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: James Morse <james.morse@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/memory.h')
0 files changed, 0 insertions, 0 deletions