minix/sys/arch/i386/stand/lib
David van Moolenbroek 3b0299dd65 bootloader: pass memory map to kernel
Previously, the bootloader would only provide a single memory range.
At least on VirtualBox, this memory range includes the ACPI tables,
which the kernel then happily overwrites when executing VM.  Much of
the infrastructure to use a fullblown memory map is already in place;
this patch adds the last (and strangely missing) bit of generating
the memory map in a multiboot-compatible way.

It should be noted that both the bootloader and the kernel actually
violate the multiboot specification by not packing the structure for
the memory ranges.  This is a NetBSD bug, but it is also a nonissue
for (our) practical purposes.  It can be fixed without changing the
code added in this patch.

Change-Id: I7c0a307a8a8133239531e1d2b80f376849f90247
2015-02-10 13:47:28 +00:00
..
crt/dos Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
netif Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
test Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
bios_disk.S Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
bios_pci.S Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
biosdelay.S Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
biosdisk.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
biosdisk.h Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
biosdisk_ll.c Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
biosdisk_ll.h Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
biosgetrtc.S Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
biosgetsystime.S Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
biosmca.h Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
biosmca.S Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
biosmem.S Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
biosmemps2.S Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
biosmemx.S Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
biospci.c Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
biosreboot.S Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
biosvbe.S Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
biosvideomode.S Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
boot_params.S Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
bootinfo.c Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
bootinfo.h Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
bootinfo_biosgeom.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
bootinfo_memmap.c Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
bootmenu.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
bootmenu.h Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
bootmod.h Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
comio.S Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
comio_direct.c Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
comio_direct.h Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
conio.S Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
cpufunc.h Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
cpufunc.S Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
diskbuf.c Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
diskbuf.h Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
dos_file.S Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
dosfile.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
dosfile.h Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
dump_eax.S Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
exec.c bootloader: pass memory map to kernel 2015-02-10 13:47:28 +00:00
gatea20.c Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
getextmemx.c Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
getsecs.c Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
isadma.c Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
isadmavar.h Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
isapnp.c Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
isapnpvar.h Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
libi386.h Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
Makefile Upgrading build system to new NetBSD revision 2012-11-15 16:07:29 +01:00
Makefile.inc Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
menuutils.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
message.S Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
message32.S Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
multiboot.S Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
parseutils.c Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
pcio.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
pcivar.h Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
pread.c Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
printmemlist.c Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
putstr.S Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
putstr32.S Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
pvcopy.S Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
rasops.c Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
realprot.S Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
startprog.S Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00
vbe.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
vbe.h Initial import of libsa, libkern, bootxx, boot. 2012-02-09 18:48:13 +01:00