linux.c32: fix initrd alignment
authorH. Peter Anvin <hpa@zytor.com>
Thu, 12 Mar 2009 20:50:03 +0000 (13:50 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 12 Mar 2009 20:54:08 +0000 (13:54 -0700)
commit14b47f77ec944c0cc8cb56d5e220ce67846dcf4d
tree3de5406d966903a82bc418b3ff97606bcb735fdc
parentd16e5e8e8ea526326ed6f8880464399624bfe171
linux.c32: fix initrd alignment

Impact: fix boot failure on Dell E6500 and possibly other platforms

Linux may not be able to access a part of an initrd which resides in a
page that is part RAM, part non-RAM.  Make sure we round the end of
the memory range we want to use down to a page boundary (as well as
round the start up.)

Reported-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/lib/syslinux/load_linux.c