freebsd-nq/sys/boot/i386
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
..
boot0 Don't use -N to set the OMAGIC with data and text writeable and data 2016-09-03 15:26:28 +00:00
boot0sio
boot2 xfsread inlined uses more space, so remove the inline tag. This 2017-03-29 18:35:20 +00:00
btx loader: disk io should not use alloca() 2017-02-06 18:44:15 +00:00
cdboot cdboot: add explict suffix to ambiguous or instruction 2016-12-28 23:02:01 +00:00
common loader: zfs reader should check all labels 2017-04-06 18:17:29 +00:00
gptboot Implement boot-time encryption key passing (keybuf) 2017-04-01 05:05:22 +00:00
gptzfsboot Use NO_WCAST_ALIGN instead of spelling it out as -Wno-cast-align in CFLAGS 2017-03-28 20:30:33 +00:00
kgzldr
libfirewire dosfs support in libstand is broken since r298230 2016-12-30 19:06:29 +00:00
libi386 loader/multiboot: fix multiboot loading 2017-04-13 09:59:12 +00:00
loader loader: zfs reader should check all labels 2017-04-06 18:17:29 +00:00
mbr Don't use -N to set the OMAGIC with data and text writeable and data 2016-09-03 15:26:28 +00:00
pmbr Don't use -N to set the OMAGIC with data and text writeable and data 2016-09-03 15:26:28 +00:00
pxeldr dd is currently a bootstrap tool. It really doesn't have any business 2016-12-02 14:44:38 +00:00
zfsboot loader: zfs reader should check all labels 2017-04-06 18:17:29 +00:00
zfsloader
boot.ldscript Don't use -N to set the OMAGIC with data and text writeable and data 2016-09-03 15:26:28 +00:00
Makefile
Makefile.inc Back out the move to the loader script from -N. This should fix the 2016-10-26 05:26:58 +00:00