Commit fa39dc43 authored by Paul Mackerras's avatar Paul Mackerras

powerpc32: Limit memory to lowmem if !CONFIG_HIGHMEM.

This trims off the extra unusable memory from the lmb structure,
so we don't try to use it.
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent b41fc4f8
...@@ -154,10 +154,13 @@ void __init MMU_init(void) ...@@ -154,10 +154,13 @@ void __init MMU_init(void)
* in the fixed entries */ * in the fixed entries */
adjust_total_lowmem(); adjust_total_lowmem();
#endif /* CONFIG_FSL_BOOKE */ #endif /* CONFIG_FSL_BOOKE */
if (total_lowmem > __max_low_memory) { if (total_lowmem > __max_low_memory) {
total_lowmem = __max_low_memory; total_lowmem = __max_low_memory;
#ifndef CONFIG_HIGHMEM #ifndef CONFIG_HIGHMEM
total_memory = total_lowmem; total_memory = total_lowmem;
lmb_enforce_memory_limit(total_lowmem);
lmb_analyze();
#endif /* CONFIG_HIGHMEM */ #endif /* CONFIG_HIGHMEM */
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment