freebsd-dev/stand/powerpc/ofw
Leandro Lupori f83288645c powerpc64le: stand fixes
Fix boot1 and loader on PowerPC64 little-endian (LE).

Due to endian issues, boot1 couldn't find the UFS boot partition
and loader wasn't able to load the kernel. Most of the issues
happened because boot1 and loader were BE binaries trying to access
LE UFS partitions and because loader expects the kernel ELF image
to use the same endian as itself.

To fix these issues, boot1 and loader are now built as LE binaries
on PPC64LE. To support this, the functions that call OpenFirmware
were enhanced to correctly perform endian conversion on its input
and output arguments and to change the CPU into BE mode before
making the calls, as OpenFirmware always runs in BE. Besides that,
some other small fixes were needed.

Submitted by:		bdragon (initial version)
Reviewed by:		alfredo, jhibbits
Sponsored by:		Instituto de Pesquisas Eldorado (eldorado.org.br)
Differential Revision:	https://reviews.freebsd.org/D32160
2021-10-20 15:48:33 -03:00
..
cas.c powerpc64le: stand fixes 2021-10-20 15:48:33 -03:00
conf.c Add support to MSDOS FS in PPC loader 2020-04-07 19:46:00 +00:00
elf_freebsd.c [PowerPC64] stand: fix build using clang 8 as compiler 2019-05-20 19:21:35 +00:00
gfx_fb.c loader: fix powerpc build with gfx_fb 2021-01-04 16:57:58 +00:00
ldscript.powerpc [PowerPC] Fix LLD10 linking of ofw loader on ppc 2020-02-25 00:45:09 +00:00
ldscript.powerpcle powerpc64le: stand fixes 2021-10-20 15:48:33 -03:00
main.c powerpc64le: stand fixes 2021-10-20 15:48:33 -03:00
Makefile powerpc64le: stand fixes 2021-10-20 15:48:33 -03:00
ofwfdt.c powerpc64le: stand fixes 2021-10-20 15:48:33 -03:00
ppc64_elf_freebsd.c [PowerPC64] stand: fix build using clang 8 as compiler 2019-05-20 19:21:35 +00:00
start.c Declare our strange brand of main(). 2017-12-03 04:55:14 +00:00
trampolineLE.S powerpc64le: stand fixes 2021-10-20 15:48:33 -03:00
version