arm64/lib: copy_page: avoid x18 register in assembler code
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 6 Dec 2019 22:13:38 +0000 (14:13 -0800)
committerWill Deacon <will@kernel.org>
Thu, 16 Jan 2020 17:32:56 +0000 (17:32 +0000)
commit7f153ccb9bb4c83a62cce8d034012698f68a3b4c
tree475f724c259f64bdaba847170f4a203fec8ba7e4
parente3ec6582d1cf1c4922200f7cddd96d5ee55235d2
arm64/lib: copy_page: avoid x18 register in assembler code

Register x18 will no longer be used as a caller save register in the
future, so stop using it in the copy_page() code.

Link: https://patchwork.kernel.org/patch/9836869/
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
[Sami: changed the offset and bias to be explicit]
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/lib/copy_page.S