freebsd-dev/stand/i386
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
..
boot0
boot0sio
boot2
btx
cdboot
common Remove the 'mini libstand in libstand' that util.[ch] provided. These 2017-12-15 23:16:53 +00:00
gptboot Remove the 'mini libstand in libstand' that util.[ch] provided. These 2017-12-15 23:16:53 +00:00
gptzfsboot Avoid setting -Wno-tentative-definition-incomplete-type with gcc. 2017-12-07 22:11:23 +00:00
kgzldr
libfirewire
libi386 Fix all warnings related to geli and ZFS support on x86. 2017-12-02 00:07:37 +00:00
loader Revert r326792, r326784, r326772, r326712 2017-12-12 22:06:22 +00:00
mbr
pmbr
pxeldr
zfsboot Remove the 'mini libstand in libstand' that util.[ch] provided. These 2017-12-15 23:16:53 +00:00
zfsloader
boot.ldscript
Makefile
Makefile.inc