"H. Peter Anvin" <firstname.lastname@example.org> writes:
> The following patch is a fairly small and fully backwards compatible
> change to the i386 boot protocol. It makes the maximum legal initrd
> address explicitly available to the boot loader, so it doesn't have to
> guess. To make matters worse, the current documentation specifies
> 0x3C000000 as the top address (exclusive), but the real address is
> This patch:
> a) Bumps the boot protocol version number to 2.03;
> b) Adds a field to the boot header which contains the maximum legal
> initrd address;
> c) Slightly reorganizes a couple of macros to make (b) possible;
> d) Documents this change and the actual behaviour for previous
> protocol versions.
This looks reasonable.
A couple of notes:
1) The minimum safe ramdisk address is 8MB (since 2.4.10). On low
mem machines you can get away with placing a ramdisk lower. But we
don't do any checking in our initial 8MB memory map.
2) If we use units of kilobytes instead of bytes for this we don't
loose any precision and gain the ability to put a ramdisk in high
memory without bumping the protocol version.
3) If we are going to export the maximum address we should also export
the minimum address.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to email@example.com
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Dec 15 2001 - 21:00:15 EST