freebsd-dev/sys/powerpc/ofw
Brandon Bergren 9411e24df3 [PowerPC] kernel ifunc support for powerpc*, fix ppc64 relocation oddities.
This is a general cleanup of the relocatable kernel support on powerpc,
needed to enable kernel ifuncs.

 * Fix some relocatable issues in the kernel linker, and change to using
   a RELOCATABLE_KERNEL #define instead of #ifdef __powerpc__ for parts that
   other platforms can use in the future if they wish to have ET_DYN kernels.

 * Get rid of the DB_STOFFS hack now that the kernel is relocated to the DMAP
   properly across the board on powerpc64.

 * Add powerpc64 and powerpc32 ifunc functionality.

 * Allow AIM64 virtual mode OF kernels to run from the DMAP like other AIM64
   by implementing a virtual mode restart. This fixes the runtime address on
   PowerMac G5.

 * Fix symbol relocation problems on post-relocation kernels by relocating
   the symbol table.

 * Add an undocumented method for supplying kernel symbols on powernv and
   other powerpc machines using linux-style kernel/initrd loading -- If
   you pass the kernel in as the initrd as well, the copy resident in initrd
   will be used as a source for symbols when initializing the debugger.
   This method is subject to removal once we have a better way of doing this.

Approved by:	jhibbits
Relnotes:	yes
Sponsored by:	Tag1 Consulting, Inc.
Differential Revision:	https://reviews.freebsd.org/D23156
2020-05-07 19:32:49 +00:00
..
ofw_initrd.c [PowerPC] kernel ifunc support for powerpc*, fix ppc64 relocation oddities. 2020-05-07 19:32:49 +00:00
ofw_machdep.c powerpc: Fix the NUMA domain list on powernv 2020-01-18 01:26:54 +00:00
ofw_pcib_pci.c Sprinkle EARLY_DRIVER_MODULE around the tree 2018-12-04 04:55:49 +00:00
ofw_pcibus.c powerpc: Fix the NUMA domain list on powernv 2020-01-18 01:26:54 +00:00
ofw_pcibus.h
ofw_real.c Enable use of ofwcons for early debug 2019-12-09 13:40:23 +00:00
ofw_syscons.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
ofw_syscons.h
ofwcall32.S powerpc: Get 32-bit AIM building with secure-PLT 2019-08-05 01:37:18 +00:00
ofwcall64.S powerpc64: Use medium code model in asm files for TOC references 2019-03-29 02:38:30 +00:00
openpic_ofw.c powerpc/mpc85xx: Add MSI support for Freescale PowerPC SoCs 2019-11-08 03:36:19 +00:00
rtas.c