freebsd-dev/sys
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
..
amd64 Revert r323087 2017-09-01 17:03:48 +00:00
arm Add Armada 80x0/70x0 compatible to 38x RTC driver 2017-09-05 05:45:57 +00:00
arm64 Add Marvell RTC driver to arm64 GENERIC config 2017-09-05 05:50:01 +00:00
boot Fix loader bug causing too many pages allocation when bootloader is U-Boot 2017-09-05 05:53:43 +00:00
bsm Commit the 64-bit inode project. 2017-05-23 09:29:05 +00:00
cam Add missing test for NVME CCBs for nvme passthru support. 2017-08-29 21:04:29 +00:00
cddl Add sysctls for arc shrinking and growing values 2017-08-31 13:02:17 +00:00
compat Add proper support for the md_label into md(4) ioctl compat layer. 2017-08-30 15:07:10 +00:00
conf Add Marvell RTC driver to arm64 GENERIC config 2017-09-05 05:50:01 +00:00
contrib Merge ACPICA 20170831. 2017-08-31 22:47:04 +00:00
crypto aesni: quiet -Wcast-qual 2017-08-16 22:54:35 +00:00
ddb Rename mkdumpheader() and group EKCD functions in kern_shutdown.c. 2017-08-18 04:04:09 +00:00
dev Increase negotiation polling period from 10ms to 100ms. 2017-09-02 13:28:45 +00:00
fs Style. 2017-08-28 21:04:56 +00:00
gdb
geom The hard drive media device path contains the size of the partition, 2017-09-02 07:04:06 +00:00
gnu Update DTS files from Linux 4.12 2017-07-09 13:53:32 +00:00
i386 Revert r323087 2017-09-01 17:03:48 +00:00
isa Use better hard-coded defaults for the cursor shape, and remove nearby 2017-08-19 19:33:16 +00:00
kern Add CAM/NVMe support for CAM_DATA_SG 2017-08-29 15:29:57 +00:00
kgssapi
libkern x86/crc32_sse42.c: quiet unused function warning 2017-08-11 17:05:31 +00:00
mips Fix whitespace on "options" to be <space><tab>, no functional change 2017-09-04 20:10:34 +00:00
modules Add NTB driver for PLX/Avago/Broadcom PCIe switches. 2017-08-30 21:16:32 +00:00
net if: Add ioctls to get RSS key and hash type/function. 2017-09-05 05:28:52 +00:00
net80211 net80211: fix a typo (premable -> preamble). 2017-08-27 22:13:03 +00:00
netgraph Check return value from soaccept(). 2017-06-14 16:13:20 +00:00
netinet Fix blackhole detection. 2017-08-28 11:41:18 +00:00
netinet6 After inpcb route caching was put back in place there is no need for 2017-07-27 13:03:36 +00:00
netipsec Fix possible double releasing for SA reference. 2017-09-01 11:51:07 +00:00
netpfil pf_get_sport(): Prevent possible endless loop when searching for an unused nat port 2017-08-08 21:09:26 +00:00
netsmb
nfs Improve FHA locality control for NFS read/write requests. 2017-07-31 15:23:19 +00:00
nfsclient Add an NFSv4.1 mount option for "use one openowner". 2017-04-13 21:54:19 +00:00
nfsserver
nlm Commit the 64-bit inode project. 2017-05-23 09:29:05 +00:00
ofed Change reject message type when destroying cm_id in ibore. 2017-08-03 09:31:10 +00:00
opencrypto Use const with some read-only buffers in opencrypto APIs. 2017-05-09 18:28:42 +00:00
powerpc Revert r323087 2017-09-01 17:03:48 +00:00
riscv Revert r323087 2017-09-01 17:03:48 +00:00
rpc Listening sockets improvements. 2017-06-08 21:30:34 +00:00
security Correct bitwise test in mac_bsdextended ugidfw_rule_valid() 2017-06-13 01:17:58 +00:00
sparc64 Revert r323087 2017-09-01 17:03:48 +00:00
sys if: Add ioctls to get RSS key and hash type/function. 2017-09-05 05:28:52 +00:00
teken Fix syscons escape sequence for setting the local cursor type. This sequence 2017-08-18 15:40:40 +00:00
tests style(9): sort headers 2017-05-09 05:08:47 +00:00
tools make.conf: Add the possibility to use another DTC 2017-06-17 23:34:53 +00:00
ufs The new fsck recovery information to enable it to find backup 2017-09-04 20:19:36 +00:00
vm Adjust interface of swapon_check_swzone() to its actual usage. 2017-08-30 10:17:00 +00:00
x86 acpi/srat: zero the SRAT cpu array 2017-09-04 10:08:42 +00:00
xdr * limit size of buffers to RPC_MAXDATASIZE 2017-06-01 06:12:25 +00:00
xen
Makefile Remove glimpse make target added in r181432 2017-05-22 15:53:30 +00:00