diff options
Diffstat (limited to 'arch/mips/kernel/setup.c')
| -rw-r--r-- | arch/mips/kernel/setup.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index be73c491182b..008b3378653a 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c | |||
| @@ -337,6 +337,11 @@ static void __init bootmem_init(void) | |||
| 337 | min_low_pfn = start; | 337 | min_low_pfn = start; |
| 338 | if (end <= reserved_end) | 338 | if (end <= reserved_end) |
| 339 | continue; | 339 | continue; |
| 340 | #ifdef CONFIG_BLK_DEV_INITRD | ||
| 341 | /* mapstart should be after initrd_end */ | ||
| 342 | if (initrd_end && end <= (unsigned long)PFN_UP(__pa(initrd_end))) | ||
| 343 | continue; | ||
| 344 | #endif | ||
| 340 | if (start >= mapstart) | 345 | if (start >= mapstart) |
| 341 | continue; | 346 | continue; |
| 342 | mapstart = max(reserved_end, start); | 347 | mapstart = max(reserved_end, start); |
| @@ -366,14 +371,6 @@ static void __init bootmem_init(void) | |||
| 366 | max_low_pfn = PFN_DOWN(HIGHMEM_START); | 371 | max_low_pfn = PFN_DOWN(HIGHMEM_START); |
| 367 | } | 372 | } |
| 368 | 373 | ||
| 369 | #ifdef CONFIG_BLK_DEV_INITRD | ||
| 370 | /* | ||
| 371 | * mapstart should be after initrd_end | ||
| 372 | */ | ||
| 373 | if (initrd_end) | ||
| 374 | mapstart = max(mapstart, (unsigned long)PFN_UP(__pa(initrd_end))); | ||
| 375 | #endif | ||
| 376 | |||
| 377 | /* | 374 | /* |
| 378 | * Initialize the boot-time allocator with low memory only. | 375 | * Initialize the boot-time allocator with low memory only. |
| 379 | */ | 376 | */ |
