x86: not overmap more than the end of RAM in init_memory_mapping - 64bit
authorYinghai Lu <yhlu.kernel@gmail.com>
Tue, 8 Jul 2008 08:43:27 +0000 (01:43 -0700)
committerIngo Molnar <mingo@elte.hu>
Wed, 9 Jul 2008 08:43:26 +0000 (10:43 +0200)
commitc2e6d65bcea2672788f9bb58ce7606c41388387b
tree3ba6eab6156b0d2335c7a6bcd936838bb58ce87a
parent2dc807b37b7b8c7df445513ad2b415df4ebcaf6d
x86: not overmap more than the end of RAM in init_memory_mapping - 64bit

handle head and tail that are not aligned to big pages (2MB/1GB boundary).

with this patch, on system that support gbpages, change:

  last_map_addr: 1080000000 end: 1078000000

to:

  last_map_addr: 1078000000 end: 1078000000

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/init_64.c