]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use adrp in the arm64 efi loader
authorAndrew Turner <andrew@FreeBSD.org>
Tue, 13 Oct 2020 16:51:05 +0000 (16:51 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Fri, 8 Oct 2021 05:24:27 +0000 (00:24 -0500)
commit438448dd9fb50720cc289b63892c12b6c8c34e5f
treecb234de2a1d72f9b0d0d6c8a60e1943e9502809c
parent1432cd3a8f6f2ed2584016b19edb86655293bd96
Use adrp in the arm64 efi loader

On startup the arm64 efi loaders need to know PC-relative addresses.
Previously we used the adr instruction to find this address, however this
instruction is limited to +/- 1MiB.

Switch to adrp to find the 4k page the address is within and an add to
set the bottom 12 bits. This lets us address +/- 4GiB which should be
large enough for now.

(cherry picked from commit b9aa4537b2155a0b0bb419ff05b8da206c02bfbd)
stand/efi/loader/arch/arm64/start.S