]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
boot1.efi: use malloc family from libsa
authorToomas Soome <tsoome@FreeBSD.org>
Tue, 30 Jun 2020 21:48:58 +0000 (21:48 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Fri, 8 Oct 2021 05:24:26 +0000 (00:24 -0500)
commitfbeb08184407c1d8824790fd51410f9e8f200522
tree452011a50db57e6a3ae7717b3848931e85831f76
parentaf3c16f3421e36a5f97cabcbb23efa51505622c2
boot1.efi: use malloc family from libsa

The zfs reader development did reach to the point where linking boot1,
we will get errors about duplicate symbols Malloc, Free, Calloc.

We can just use libsa version, just as loader.efi does. The only concern is,
libsa zalloc is using fixed size heap region, I did pick 64MB as other
stage instances are using, but this size is likely not optimal. In any case,
with limited memory setups, we should boot loader.efi directly.

(cherry picked from commit 12c470af750672c4847af20cc8e2a736aab7db78)
stand/efi/boot1/boot1.c