opnsense-src/sys/boot/efi
Marcin Wojtas cb4226ba86 Fix loader bug causing too many pages allocation when bootloader is U-Boot
FreeBSD loader expects to have mmsz variable set by bootloader.
U-Boot behaviour is that if buffer size is not big enough to keep
whole memory map, assign the smallest correct buffer size to sz
and return error.

In other words U-Boot assumes that nobody will need mmsz value when buffer
is not filled with memory map, which is not true, so calculated pages value
was too big to allocate.

Solution: Simply assign default value to mmsz.

Submitted by: Patryk Duda <pdk@semihalf.com>
Obtained from: Semihalf
Sponsored by: Semihalf
Differential Revision: https://reviews.freebsd.org/D12194
2017-09-05 05:53:43 +00:00
..
boot1 Revert r322941: Eliminate redundant device matching functions 2017-09-02 18:18:49 +00:00
fdt Do not use -msoft-float with intention of disabling FP on aarch64 2017-04-07 22:58:25 +00:00
include Save where we're booted from 2017-08-31 17:32:24 +00:00
libefi Make efichar.c routines available to libefi. 2017-08-31 17:32:09 +00:00
loader Fix loader bug causing too many pages allocation when bootloader is U-Boot 2017-09-05 05:53:43 +00:00
Makefile Fix typo in the COMPILER_VERSION check 2016-10-22 20:00:39 +00:00
Makefile.inc Do not use -msoft-float with intention of disabling FP on aarch64 2017-04-07 22:58:25 +00:00