]> 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)
committerToomas Soome <tsoome@FreeBSD.org>
Tue, 30 Jun 2020 21:48:58 +0000 (21:48 +0000)
commit12c470af750672c4847af20cc8e2a736aab7db78
tree5e934c7b07209c61e5e80f35bd8009045ed436c6
parentebc22d04956625fd351d57d791171a6e0c653c45
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.

Sponsored by: Netflix, Klara Inc.
stand/efi/boot1/boot1.c