freebsd-nq/sys/riscv
Mitchell Horne e12bf34c05 RISC-V: fix global symbol lookups for mpentry with lld
This is a follow up to r356481. In locore.S, before virtual memory is
set up, we should avoid using indirect address lookups through the GOT.
Therefore we need to convert uses of the la instruction to lla, which
always generates an auipc/addi pair of instructions. This conversion was
done for the BSP case, but not the AP case, resulting in a fault
somewhere before mpva and a failure to bring APs online.

Reported by:	lwhsu
Reviewed by:	lwhsu, jrtc27 (accepted in a comment)
Differential Revision:	https://reviews.freebsd.org/D23138
2020-01-13 03:39:02 +00:00
..
conf RISC-V: Remove EARLY_AP_STARTUP from GENERIC 2019-11-02 19:33:02 +00:00
include Introduce vm_page_astate. 2019-12-10 18:14:50 +00:00
riscv RISC-V: fix global symbol lookups for mpentry with lld 2020-01-13 03:39:02 +00:00
sifive sifive: Fix incorrect tx/rx ctrl defines 2020-01-07 09:02:14 +00:00