• A
    arm64: kernel: perform relocation processing from ID map · 0cd3defe
    Ard Biesheuvel 提交于
    Refactor the relocation processing so that the code executes from the
    ID map while accessing the relocation tables via the virtual mapping.
    This way, we can use literals containing virtual addresses as before,
    instead of having to use convoluted absolute expressions.
    
    For symmetry with the secondary code path, the relocation code and the
    subsequent jump to the virtual entry point are implemented in a function
    called __primary_switch(), and __mmap_switched() is renamed to
    __primary_switched(). Also, the call sequence in stext() is aligned with
    the one in secondary_startup(), by replacing the awkward 'adr_l lr' and
    'b cpu_setup' sequence with a simple branch and link.
    Acked-by: NCatalin Marinas <catalin.marinas@arm.com>
    Signed-off-by: NArd Biesheuvel <ard.biesheuvel@linaro.org>
    Signed-off-by: NWill Deacon <will.deacon@arm.com>
    0cd3defe
head.S 21.8 KB