mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
[SPARC32]: Fix bogus ramdisk image location check.
This mirrors sparc64 commit 715a0ecc29
sparc_ramdisk_image should always be decremented by KERNBASE.
Signed-off-by: Mark Fortescue <mark@mtfhpc.demon.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3ac4c949e0
commit
f642b26380
1 changed files with 1 additions and 2 deletions
|
@ -206,7 +206,6 @@ unsigned long __init bootmem_init(unsigned long *pages_avail)
|
||||||
#ifdef CONFIG_BLK_DEV_INITRD
|
#ifdef CONFIG_BLK_DEV_INITRD
|
||||||
/* Now have to check initial ramdisk, so that bootmap does not overwrite it */
|
/* Now have to check initial ramdisk, so that bootmap does not overwrite it */
|
||||||
if (sparc_ramdisk_image) {
|
if (sparc_ramdisk_image) {
|
||||||
if (sparc_ramdisk_image >= (unsigned long)&_end - 2 * PAGE_SIZE)
|
|
||||||
sparc_ramdisk_image -= KERNBASE;
|
sparc_ramdisk_image -= KERNBASE;
|
||||||
initrd_start = sparc_ramdisk_image + phys_base;
|
initrd_start = sparc_ramdisk_image + phys_base;
|
||||||
initrd_end = initrd_start + sparc_ramdisk_size;
|
initrd_end = initrd_start + sparc_ramdisk_size;
|
||||||
|
|
Loading…
Add table
Reference in a new issue