aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/kernel/setup.c')
-rw-r--r--arch/mips/kernel/setup.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c
index f66af9cc7220..804b93dc3c5a 100644
--- a/arch/mips/kernel/setup.c
+++ b/arch/mips/kernel/setup.c
@@ -473,9 +473,6 @@ static void __init arch_mem_init(char **cmdline_p)
473 paging_init(); 473 paging_init();
474} 474}
475 475
476#define MAXMEM HIGHMEM_START
477#define MAXMEM_PFN PFN_DOWN(MAXMEM)
478
479static void __init resource_init(void) 476static void __init resource_init(void)
480{ 477{
481 int i; 478 int i;
@@ -497,10 +494,10 @@ static void __init resource_init(void)
497 494
498 start = boot_mem_map.map[i].addr; 495 start = boot_mem_map.map[i].addr;
499 end = boot_mem_map.map[i].addr + boot_mem_map.map[i].size - 1; 496 end = boot_mem_map.map[i].addr + boot_mem_map.map[i].size - 1;
500 if (start >= MAXMEM) 497 if (start >= HIGHMEM_START)
501 continue; 498 continue;
502 if (end >= MAXMEM) 499 if (end >= HIGHMEM_START)
503 end = MAXMEM - 1; 500 end = HIGHMEM_START - 1;
504 501
505 res = alloc_bootmem(sizeof(struct resource)); 502 res = alloc_bootmem(sizeof(struct resource));
506 switch (boot_mem_map.map[i].type) { 503 switch (boot_mem_map.map[i].type) {
@@ -529,9 +526,6 @@ static void __init resource_init(void)
529 } 526 }
530} 527}
531 528
532#undef MAXMEM
533#undef MAXMEM_PFN
534
535void __init setup_arch(char **cmdline_p) 529void __init setup_arch(char **cmdline_p)
536{ 530{
537 cpu_probe(); 531 cpu_probe();