[PATCH] remove the warning from arch/i386/boot/setup.S

From: Jörn Engel
Date: Fri Apr 02 2004 - 12:34:08 EST


Not sure how many people tried to fix this before, but it's still in
2.6.4. And guess what, we depend on undocumented behaviour, so I'd
prefer to make this dependency explicit.

Jörn

--
Mundie uses a textbook tactic of manipulation: start with some
reasonable talk, and lead the audience to an unreasonable conclusion.
-- Bruce Perens

The warning is correct, the calculated value for ramdisk_max would be
0xb7ffffff instead of 0x37ffffff. Truncating 0xb7ffffff to 0x37ffffff
is desired behaviour, so we should do it explicitly.

setup.S | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)

--- linux-2.6.1/arch/i386/boot/setup.S~initrd_warning 2004-03-09 11:37:29.000000000 +0100
+++ linux-2.6.1/arch/i386/boot/setup.S 2004-03-09 11:38:59.000000000 +0100
@@ -162,7 +162,8 @@
# can be located anywhere in
# low memory 0x10000 or higher.

-ramdisk_max: .long MAXMEM-1 # (Header version 0x0203 or later)
+ramdisk_max: .long (MAXMEM-1) & 0x7fffffff
+ # (Header version 0x0203 or later)
# The highest safe address for
# the contents of an initrd

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/