• Mark Rutland's avatar
    arm64: head.S: avoid open-coded adr_l · 9bb00360
    Mark Rutland authored
    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 adr_l these in head.S, removing an open-coded
    sequence using adrp.
    Signed-off-by: default avatarMark Rutland <mark.rutland@arm.com>
    Reviewed-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
    Cc: Catalin Marinas <catalin.marinas@arm.com>
    Cc: Marc Zyngier <marc.zyngier@arm.com>
    Cc: Will Deacon <will.deacon@arm.com>
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    9bb00360
head.S 23.2 KB