diff options
author | David S. Miller <davem@davemloft.net> | 2008-05-15 02:10:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-16 16:34:35 -0400 |
commit | 7047901ec7d6eca97cf66f54b8a4197bb0754f40 (patch) | |
tree | be3a09bf6d9943bbbe8ecee55bcd4d3de55a228c /arch/sparc64 | |
parent | f26a3988917913b3d11b2bd741601a2c64ab9204 (diff) |
sparc64: Fix lmb_reserve() args in find_ramdisk().
This fixes the missing ram regression reported by
Mikael Pettersson <mikpe@it.uu.se>, much thanks for
all of this help in diagnosing this.
The second argument to lmb_reserve() is a size,
not an end address bounds.
Tested-by: Mikael Pettersson <mikpe@it.uu.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64')
-rw-r--r-- | arch/sparc64/mm/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c index a9828d748e2c..3c7b9471eafb 100644 --- a/arch/sparc64/mm/init.c +++ b/arch/sparc64/mm/init.c | |||
@@ -768,7 +768,7 @@ static void __init find_ramdisk(unsigned long phys_base) | |||
768 | initrd_start = ramdisk_image; | 768 | initrd_start = ramdisk_image; |
769 | initrd_end = ramdisk_image + sparc_ramdisk_size; | 769 | initrd_end = ramdisk_image + sparc_ramdisk_size; |
770 | 770 | ||
771 | lmb_reserve(initrd_start, initrd_end); | 771 | lmb_reserve(initrd_start, sparc_ramdisk_size); |
772 | 772 | ||
773 | initrd_start += PAGE_OFFSET; | 773 | initrd_start += PAGE_OFFSET; |
774 | initrd_end += PAGE_OFFSET; | 774 | initrd_end += PAGE_OFFSET; |