freebsd-dev/stand
Warner Losh 6562843997 Remove the 'mini libstand in libstand' that util.[ch] provided. These
weren't needed, and their existance interfered with things in subtle
ways. One of these subtle ways was that malloc could be different
based on what files were included when (even within the same .c file,
it turns out). Move to a single malloc implementation as well by
adding the calls to setheap() to gptboot.c and zfsboot.c. Once upon a
time, these boot loaders strove to not use libstand. However, with the
proliferation of features, that striving is too hard for too little
gain and lead to stupid mistakes.

This fixes the GELI-enabled (but not even using) boot environment. The
geli routines were calling libstand malloc but zfsboot.c and gptboot.c
were using the mini libstand malloc, so this failed when we tried to
probe for GELI partitions. Subtle changes in build order when moving
to self-contained stand build in r326593 toggled what it used from one
type to another due to odd nesting of the zfs implementation code that
differed subtly between zfsloader and zfsboot.

Sponsored by: Netflix
2017-12-15 23:16:53 +00:00
..
arm Save and restore r9 register in arm ubldr. In old gcc 4.2, r9 was a callee- 2017-12-10 21:51:27 +00:00
arm64
common Revert r326792, r326784, r326772, r326712 2017-12-12 22:06:22 +00:00
efi libefi: make efichar.h more usable in stand code 2017-12-14 16:41:52 +00:00
fdt
ficl Revert r326855: Cargo cut a fix for the regressions r326585 caused. 2017-12-14 18:57:17 +00:00
ficl32
forth
geli No need to include the userland md5.h, the kernel one is just fine. 2017-12-05 21:37:45 +00:00
i386 Remove the 'mini libstand in libstand' that util.[ch] provided. These 2017-12-15 23:16:53 +00:00
kshim
libsa Remove the 'mini libstand in libstand' that util.[ch] provided. These 2017-12-15 23:16:53 +00:00
libsa32
man
mips Remove the 'mini libstand in libstand' that util.[ch] provided. These 2017-12-15 23:16:53 +00:00
ofw Revert r326792, r326784, r326772, r326712 2017-12-12 22:06:22 +00:00
powerpc Revert r326792, r326784, r326772, r326712 2017-12-12 22:06:22 +00:00
sparc64 Revert r326792, r326784, r326772, r326712 2017-12-12 22:06:22 +00:00
uboot Revert r326792, r326784, r326772, r326712 2017-12-12 22:06:22 +00:00
usb
userboot Revert r326792, r326784, r326772, r326712 2017-12-12 22:06:22 +00:00
zfs Mark two things as unused (since they are only sometimes used) and 2017-12-03 04:55:33 +00:00
zfs32
defs.mk Fix a comment to be more accurate 2017-12-11 14:47:23 +00:00
fdt.mk
ficl.mk This path belongs in ficl/Makefile, not the common defines for users 2017-12-08 22:19:41 +00:00
loader.mk Revert r326792, r326784, r326772, r326712 2017-12-12 22:06:22 +00:00
Makefile
Makefile.amd64 Switch to proper MK_LOADER_GELI tests. 2017-12-04 01:14:12 +00:00
Makefile.arm
Makefile.arm64
Makefile.i386 Switch to proper MK_LOADER_GELI tests. 2017-12-04 01:14:12 +00:00
Makefile.inc Minor flags cleanup 2017-12-02 00:06:58 +00:00
Makefile.mips
Makefile.powerpc
Makefile.sparc64
uboot.mk