Skip to content

Commit

Permalink
sparc64: Fix initrd regression.
Browse files Browse the repository at this point in the history
We die because we forget to convert initrd_start and
initrd_end to virtual addresses.

Reported by Mikael Pettersson

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed May 6, 2008
1 parent 3eb6753 commit d45100f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/sparc64/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,9 @@ static void __init find_ramdisk(unsigned long phys_base)
initrd_end = ramdisk_image + sparc_ramdisk_size;

lmb_reserve(initrd_start, initrd_end);

initrd_start += PAGE_OFFSET;
initrd_end += PAGE_OFFSET;
}
#endif
}
Expand Down

0 comments on commit d45100f

Please sign in to comment.