freebsd-nq/stand/uboot
Albert Jakiela 1323f0aa9c stand/uboot: setup archsw before probing devices
In some cases ubldr would try to mount a disk device before
the archsw struct was filled with functions pointers.
This would result in a NULL pointer derefrence of the arch_getdev field.
Fix that filling the archsw functions earlier.
Note that this matches the EFI behavoiur.

Reviewed by: imp, mw
Sponsored by: Stormshield
Obtained from: Semihalf
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D35670
2022-07-01 13:36:41 +02:00
..
arch stand: s/libstand/libsa/g to catch up with rename 2022-04-30 07:34:19 -06:00
api_public.h stand/uboot: reorg 2021-12-14 21:09:53 -07:00
copy.c stand/uboot: reorg 2021-12-14 21:09:53 -07:00
devicename.c stand/uboot: reorg 2021-12-14 21:09:53 -07:00
elf_freebsd.c stand/uboot: reorg 2021-12-14 21:09:53 -07:00
glue.c stand/uboot: reorg 2021-12-14 21:09:53 -07:00
glue.h stand/uboot: reorg 2021-12-14 21:09:53 -07:00
help.uboot stand/uboot: reorg 2021-12-14 21:09:53 -07:00
libuboot.h stand/uboot: reorg 2021-12-14 21:09:53 -07:00
main.c stand/uboot: setup archsw before probing devices 2022-07-01 13:36:41 +02:00
Makefile stand/uboot: Fix building of ubldr.bin 2022-02-07 13:14:48 -07:00
net.c stand/uboot: reorg 2021-12-14 21:09:53 -07:00
reboot.c stand/uboot: reorg 2021-12-14 21:09:53 -07:00
time.c stand/uboot: reorg 2021-12-14 21:09:53 -07:00
uboot_console.c stand/uboot: reorg 2021-12-14 21:09:53 -07:00
uboot_disk.c stand/uboot: reorg 2021-12-14 21:09:53 -07:00
uboot_fdt.c Remove "All Rights Reserved" from Foundation copyrights 2022-06-30 10:49:09 -04:00
uboot_module.c stand/uboot: reorg 2021-12-14 21:09:53 -07:00
version stand/uboot: reorg 2021-12-14 21:09:53 -07:00