freebsd-skq/stand/powerpc
bdragon 2f958f782b [PowerPC] Fix 32-bit ubldr calling convention
Due to the way u-boot for 32-bit powerpc is compiled, the interrupt code
assumes that the GOT pointer (r30) on u-boot is always intact.

When making syscalls to u-boot, ensure that we have restored r30 like we
found it before we enable interrupts to prevent u-boot from crashing if a
timer interrupt was pending.

This fixes ubldr on e500 qemu (assuming you have recompiled qemu's u-boot
with API support!)

Reviewed by:	jhibbits
Sponsored by:	Tag1 Consulting, Inc.
Differential Revision:	https://reviews.freebsd.org/D23258
2020-01-19 04:13:19 +00:00
..
boot1.chrp [PowerPC64] stand: fix build using clang 8 as compiler 2019-05-20 19:21:35 +00:00
kboot powerpc: Use builtins for fls/flsl 2019-12-08 04:36:42 +00:00
ofw Move stand/ofw/libofw to stand/libofw. 2020-01-02 04:34:22 +00:00
uboot [PowerPC] Fix 32-bit ubldr calling convention 2020-01-19 04:13:19 +00:00
Makefile stand: TARGET_ARCH is spelled MACHINE_ARCH in Makefiles 2019-05-21 03:05:24 +00:00
Makefile.inc