]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ppc64: Fix boot on some non-LPAR pSeries
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 22 Oct 2004 00:31:03 +0000 (17:31 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 22 Oct 2004 00:31:03 +0000 (17:31 -0700)
This patch fixes a problem when allocating the TCE tables (iommu) during
early boot on some non-LPAR machines with a lot of memory.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/kernel/prom_init.c

index 2add2f88d440ed6c74d555457319c50f5f4da0a3..52f8999a9685010e14c2dfc1e47f8e22b30c2184 100644 (file)
@@ -675,7 +675,7 @@ static void __init prom_init_mem(void)
        if ( RELOC(of_platform) == PLATFORM_PSERIES_LPAR )
                RELOC(alloc_top) = RELOC(rmo_top);
        else
-               RELOC(alloc_top) = min(0x40000000ul, RELOC(ram_top));
+               RELOC(alloc_top) = RELOC(rmo_top) = min(0x40000000ul, RELOC(ram_top));
        RELOC(alloc_bottom) = PAGE_ALIGN(RELOC(klimit) - offset + 0x4000);
        RELOC(alloc_top_high) = RELOC(ram_top);