aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/kernel')
-rw-r--r--arch/sh/kernel/setup.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c
index fc7171a9c804..fc098c8af052 100644
--- a/arch/sh/kernel/setup.c
+++ b/arch/sh/kernel/setup.c
@@ -233,15 +233,17 @@ void __init setup_bootmem_allocator(unsigned long free_pfn)
233 * case of us accidentally initializing the bootmem allocator with 233 * case of us accidentally initializing the bootmem allocator with
234 * an invalid RAM area. 234 * an invalid RAM area.
235 */ 235 */
236 reserve_bootmem(__MEMORY_START+PAGE_SIZE, 236 reserve_bootmem(__MEMORY_START + CONFIG_ZERO_PAGE_OFFSET,
237 (PFN_PHYS(free_pfn)+bootmap_size+PAGE_SIZE-1)-__MEMORY_START, 237 (PFN_PHYS(free_pfn) + bootmap_size + PAGE_SIZE - 1) -
238 BOOTMEM_DEFAULT); 238 (__MEMORY_START + CONFIG_ZERO_PAGE_OFFSET),
239 BOOTMEM_DEFAULT);
239 240
240 /* 241 /*
241 * reserve physical page 0 - it's a special BIOS page on many boxes, 242 * reserve physical page 0 - it's a special BIOS page on many boxes,
242 * enabling clean reboots, SMP operation, laptop functions. 243 * enabling clean reboots, SMP operation, laptop functions.
243 */ 244 */
244 reserve_bootmem(__MEMORY_START, PAGE_SIZE, BOOTMEM_DEFAULT); 245 reserve_bootmem(__MEMORY_START, CONFIG_ZERO_PAGE_OFFSET,
246 BOOTMEM_DEFAULT);
245 247
246 sparse_memory_present_with_active_regions(0); 248 sparse_memory_present_with_active_regions(0);
247 249