freebsd-nq/stand
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
..
arm Remove obsolete code gated on _ARM_ARCH_* 2021-01-28 10:41:45 +00:00
arm64
common powerpc64le: stand fixes 2021-10-20 15:48:33 -03:00
defaults loader: Set twiddle globaldiv to 16 by default 2021-09-28 15:24:02 -07:00
efi EFI loader: Don't free bcache for DEVT_DISK devs 2021-09-30 14:48:14 -07:00
fdt loader: Fix dtb loading 2021-07-05 15:53:08 +02:00
ficl loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
ficl32 Enable veriexec for loader 2019-02-26 06:22:10 +00:00
fonts loader: really use bold font for vga text mode 2021-01-08 01:24:30 +02:00
forth loader: support.4th resets the read buffer incorrectly 2021-07-28 13:50:38 -06:00
i386 i386 loaders: avoid lld 13 garbage collecting linker sets 2021-09-08 14:04:13 +02:00
images loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
kshim Fix build of stand/usb . 2021-04-12 16:13:33 +02:00
liblua EFI secure boot VECTX related changes 2021-04-30 12:53:45 -05:00
liblua32
libofw powerpc64le: stand fixes 2021-10-20 15:48:33 -03:00
libsa loader: net_open() should not replace f->f_devdata 2021-10-19 19:43:56 +03:00
libsa32 Enable veriexec for loader 2019-02-26 06:22:10 +00:00
lua lualoader: use more concise verbiage for autoboot 2021-09-09 02:01:50 -05:00
man loader_lua.8: Fix first version 2021-09-29 17:18:51 -06:00
mips loader: implement mount/unmount rootfs 2021-09-08 04:01:20 +03:00
powerpc powerpc64le: stand fixes 2021-10-20 15:48:33 -03:00
uboot loader: implement mount/unmount rootfs 2021-09-08 04:01:20 +03:00
usb Fix build of stand/usb . 2020-01-23 10:40:34 +00:00
userboot loader: implement mount/unmount rootfs 2021-09-08 04:01:20 +03:00
defs.mk powerpc64le: stand fixes 2021-10-20 15:48:33 -03:00
fdt.mk
ficl.mk EFI secure boot VECTX related changes 2021-04-30 12:53:45 -05:00
loader.mk stand/common: Add support for timestamp logging (tslog) 2021-06-20 20:09:43 -07:00
lua.mk
Makefile stand: ensure that the efi directory's dependencies are correct 2021-01-27 13:02:51 -06:00
Makefile.amd64 stand: properly declare subdir deps or .WAIT, do parallel build 2020-12-31 11:15:45 -06:00
Makefile.inc stand: properly declare subdir deps or .WAIT, do parallel build 2020-12-31 11:15:45 -06:00
uboot.mk
veriexec.mk EFI secure boot VECTX related changes 2021-04-30 12:53:45 -05:00