freebsd-nq/sys/powerpc
Brandon Bergren ab3f2a3861 Add support for building Book-E kernels with clang/lld.
This involved several changes:

* Since lld does not like text relocations, replace SMP boot page text relocs
in booke/locore.S with position-independent math, and track the virtual base
in the SMP boot page header.

* As some SPRs are interpreted differently on clang due to the way it handles
platform-specific SPRs, switch m*dear and m*esr mnemonics out for regular
m*spr. Add both forms of SPR_DEAR to spr.h so the correct encoding is selected.

* Change some hardcoded 32 bit things in the boot page to be pointer-sized, and
fix alignment.

* Fix 64-bit build of booke/pmap.c when enabling pmap debugging.

Additionally, I took the opportunity to document how the SMP boot page works.

Approved by: jhibbits (mentor)
Differential Revision: https://reviews.freebsd.org/D21999
2019-11-02 21:15:56 +00:00
..
aim [PPC64] Fix trapstk overflow 2019-10-31 11:59:00 +00:00
amigaone powerpc: Add AmigaOne platform, a subclass of MPC85xx 2019-10-16 00:38:50 +00:00
booke Add support for building Book-E kernels with clang/lld. 2019-11-02 21:15:56 +00:00
conf Add support for building Book-E kernels with clang/lld. 2019-11-02 21:15:56 +00:00
cpufreq powerpc: Fix cpufreq statement scoping 2019-03-08 03:59:53 +00:00
fpu powerpc: Apply r178139 from sparc64 to powerpc's fpu_sqrt 2019-04-03 03:54:30 +00:00
include Add support for building Book-E kernels with clang/lld. 2019-11-02 21:15:56 +00:00
mambo sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
mikrotik - Allow different slicers for different flash types to be registered 2017-02-22 10:21:39 +00:00
mpc85xx Add support for building Book-E kernels with clang/lld. 2019-11-02 21:15:56 +00:00
ofw [PPC] Avoid underflows in NUMA domains 2019-10-22 18:28:58 +00:00
powermac Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00
powernv powerpc64/powernv: Add opal NVRAM driver for PowerNV systems 2019-09-14 03:30:34 +00:00
powerpc Add support for building Book-E kernels with clang/lld. 2019-11-02 21:15:56 +00:00
ps3 Convert to if_foreach_llmaddr() KPI. 2019-10-21 18:13:33 +00:00
pseries Convert to if_foreach_llmaddr() KPI. 2019-10-21 18:13:37 +00:00
psim add snps IP uart support / genaralize UART 2018-08-19 21:10:21 +00:00