]> err.no Git - linux-2.6/commitdiff
powerpc32: Limit memory to lowmem if !CONFIG_HIGHMEM.
authorPaul Mackerras <paulus@samba.org>
Wed, 26 Oct 2005 11:54:21 +0000 (21:54 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 26 Oct 2005 11:54:21 +0000 (21:54 +1000)
This trims off the extra unusable memory from the lmb structure,
so we don't try to use it.

Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/mm/init_32.c

index aa6a5440cec1c3c4138e101750f6072a4d18837c..8dd1f7d0e23c672a8be8b40cf8ca32811c69011b 100644 (file)
@@ -154,10 +154,13 @@ void __init MMU_init(void)
         * in the fixed entries */
        adjust_total_lowmem();
 #endif /* CONFIG_FSL_BOOKE */
+
        if (total_lowmem > __max_low_memory) {
                total_lowmem = __max_low_memory;
 #ifndef CONFIG_HIGHMEM
                total_memory = total_lowmem;
+               lmb_enforce_memory_limit(total_lowmem);
+               lmb_analyze();
 #endif /* CONFIG_HIGHMEM */
        }