freebsd-src/stand/libofw
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
..
devicename.c loader: implement mount/unmount rootfs 2021-09-08 04:01:20 +03:00
libofw.h veloader use vectx API for kernel and modules 2020-03-08 17:42:42 +00:00
Makefile loader: libofw build is missing sys/list.h after r362431 2020-06-20 08:22:57 +00:00
ofw_console.c
ofw_copy.c veloader use vectx API for kernel and modules 2020-03-08 17:42:42 +00:00
ofw_disk.c
ofw_memory.c Fix 64-bit build of libofw. 2020-09-08 23:22:11 +00:00
ofw_module.c
ofw_net.c Redo r360540 to retain the ifndef sparc code, not delete it. 2020-05-01 18:36:48 +00:00
ofw_reboot.c
ofw_time.c
openfirm.c powerpc64le: stand fixes 2021-10-20 15:48:33 -03:00
openfirm.h powerpc64le: stand fixes 2021-10-20 15:48:33 -03:00