Skip to content

Commit

Permalink
ARM: 8086/1: Set memblock limit for nommu
Browse files Browse the repository at this point in the history
Commit 1c2f87c (ARM: 8025/1: Get rid of meminfo) changed find_limits
to use memblock_get_current_limit for calculating the max_low pfn.
nommu targets never actually set a limit on memblock though which
means memblock_get_current_limit will just return the default
value. Set the memblock_limit to be the end of DDR to make sure
bounds are calculated correctly.

Signed-off-by: Laura Abbott <[email protected]>
Signed-off-by: Russell King <[email protected]>
  • Loading branch information
labbott authored and Russell King committed Jun 29, 2014
1 parent 3abe742 commit 6980c3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/mm/nommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ void __init sanity_check_meminfo(void)
sanity_check_meminfo_mpu();
end = memblock_end_of_DRAM();
high_memory = __va(end - 1) + 1;
memblock_set_current_limit(end);
}

/*
Expand Down

0 comments on commit 6980c3e

Please sign in to comment.