freebsd-dev/sys/boot/i386/libi386
Roger Pau Monné 6696a07ed5 loader/multiboot: fix multiboot loading
The current multiboot loader code doesn't clean the metadata added to the
kernel after the bi_load64 dry run, which breaks accounting of the required
memory for the metadata.

This issue didn't show itself before because all the metadata items where small
(8bytes), but after r316343 there's a big blob in the metadata, which triggers
this. Fix it by cleaning the metadata added to the kernel after the bi_load64
dry run. Also add a comment describing the memory layout when booting using
multiboot (Xen Dom0).

This unbreaks booting a FreeBSD/Xen Dom0 after r316343.

MFC after:	3 weeks
Sponsored by:	Citrix Systems R&D
2017-04-13 09:59:12 +00:00
..
amd64_tramp.S sys/boot: spelling fixes in comments. 2016-04-30 00:26:38 +00:00
biosacpi.c Deprecate using hints.acpi.0.rsdp to communicate the RSDP to the 2016-04-14 04:59:51 +00:00
bioscd.c loader: disk io should not use alloca() 2017-02-06 18:44:15 +00:00
biosdisk.c Implement boot-time encryption key passing (keybuf) 2017-04-01 05:05:22 +00:00
biosmem.c In r298230 the value of HEAP_MIN was changed from 3MB to 64MB. Correct a 2017-04-07 15:41:49 +00:00
biospci.c Really make WITHOUT_FORTH (MK_FORTH==no) work. The recent inclusion of 2016-10-25 17:31:57 +00:00
biospnp.c
biossmap.c
bootinfo32.c Implement boot-time encryption key passing (keybuf) 2017-04-01 05:05:22 +00:00
bootinfo64.c Implement boot-time encryption key passing (keybuf) 2017-04-01 05:05:22 +00:00
bootinfo.c
comconsole.c Add support for serial and null console to UEFI boot loader. 2014-09-12 17:32:28 +00:00
devicename.c
elf32_freebsd.c
elf64_freebsd.c loader: implement multiboot support for Xen Dom0 2015-01-15 16:27:20 +00:00
i386_copy.c
i386_module.c
libi386.h Create a new linker set, Xficl_compile_set which contains a list of 2016-10-14 16:23:12 +00:00
Makefile Create a new linker set, Xficl_compile_set which contains a list of 2016-10-14 16:23:12 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2016-03-21 18:02:26 +00:00
multiboot_tramp.S loader: implement multiboot support for Xen Dom0 2015-01-15 16:27:20 +00:00
multiboot.c loader/multiboot: fix multiboot loading 2017-04-13 09:59:12 +00:00
multiboot.h loader: implement multiboot support for Xen Dom0 2015-01-15 16:27:20 +00:00
nullconsole.c
pread.c
pxe.c Remove OLD_NFSV2 from loader and libstand 2017-03-30 19:32:25 +00:00
pxe.h loader: pxe.h constants have wrong values 2017-03-20 18:15:36 +00:00
pxetramp.s
smbios.c loader: smbios version check is not correct 2016-11-19 16:08:40 +00:00
smbios.h SMBIOS support for EFI. 2015-04-06 06:55:47 +00:00
spinconsole.c Make this compile when TERM_EMU is not defined. 2014-12-22 19:10:11 +00:00
time.c loader: move bios getsecs into time.c 2017-03-28 21:47:12 +00:00
vidconsole.c