SPARC64: Fix sparc64 ramdisk handling
commitf17c622ead2e14d29a118b101b46a2bb35c27f03
authorDavid S. Miller <davem@davemloft.net>
Wed, 27 Sep 2006 06:15:38 +0000 (26 23:15 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Oct 2006 20:23:26 +0000 (13 13:23 -0700)
tree713421f17b650663a887fb0ddd1d2755949c7a0a
parent5bf91bbc9f8da83f2c7c971aeb1bc1c4c73e554c
SPARC64: Fix sparc64 ramdisk handling

[SPARC64]: Kill bogus check from bootmem_init().

There is an ancient and totally incorrect sanity check being
done on the ramdisk location.  The check assumes that the
kernel is always loaded to physical address zero, which is
wrong.  It was trying to validate the ramdisk value by saying that
if it fell within the kernel image address range it must be wrong.

Anyways, kill this because it actually creates problems.  The
'ramdisk_image' should always be adjusted down by KERNBASE.
SILO can easily put the ramdisk in a location which causes
this test to trigger, breaking things.

[ Based almost entirely upon a patch from Ben Collins. ]

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/sparc64/mm/init.c