Skip to content

Commit

Permalink
powerpc32: Limit memory to lowmem if !CONFIG_HIGHMEM.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mackerras committed Oct 26, 2005
1 parent b41fc4f commit fa39dc4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/powerpc/mm/init_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
}

Expand Down

0 comments on commit fa39dc4

Please sign in to comment.