]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
arm64: efi-entry.S: avoid open-coded adr_l
authorMark Rutland <mark.rutland@arm.com>
Tue, 17 Jan 2017 16:10:57 +0000 (16:10 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 17 Jan 2017 17:41:14 +0000 (17:41 +0000)
commit526d10ae022c36722ce5b2db22b02f9353281875
tree6d2512e46c23331433f12ae6a150aa13ab5bdc79
parent9bb003600ed9aabfe33b7330fa7e93acf959e8df
arm64: efi-entry.S: avoid open-coded adr_l

Some places in the kernel open-code sequences using ADRP for a symbol
another instruction using a :lo12: relocation for that same symbol.
These sequences are easy to get wrong, and more painful to read than is
necessary. For these reasons, it is preferable to use the
{adr,ldr,str}_l macros for these cases.

This patch makes use of these in efi-entry.S, removing open-coded
sequences using adrp.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/efi-entry.S