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.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c
index 7f6ddcb5d485..c032409cba9b 100644
--- a/arch/mips/kernel/setup.c
+++ b/arch/mips/kernel/setup.c
@@ -8,7 +8,7 @@
8 * Copyright (C) 1994, 95, 96, 97, 98, 99, 2000, 01, 02, 03 Ralf Baechle 8 * Copyright (C) 1994, 95, 96, 97, 98, 99, 2000, 01, 02, 03 Ralf Baechle
9 * Copyright (C) 1996 Stoned Elipot 9 * Copyright (C) 1996 Stoned Elipot
10 * Copyright (C) 1999 Silicon Graphics, Inc. 10 * Copyright (C) 1999 Silicon Graphics, Inc.
11 * Copyright (C) 2000 2001, 2002 Maciej W. Rozycki 11 * Copyright (C) 2000, 2001, 2002, 2007 Maciej W. Rozycki
12 */ 12 */
13#include <linux/init.h> 13#include <linux/init.h>
14#include <linux/ioport.h> 14#include <linux/ioport.h>
@@ -24,10 +24,12 @@
24 24
25#include <asm/addrspace.h> 25#include <asm/addrspace.h>
26#include <asm/bootinfo.h> 26#include <asm/bootinfo.h>
27#include <asm/bugs.h>
27#include <asm/cache.h> 28#include <asm/cache.h>
28#include <asm/cpu.h> 29#include <asm/cpu.h>
29#include <asm/sections.h> 30#include <asm/sections.h>
30#include <asm/setup.h> 31#include <asm/setup.h>
32#include <asm/smp-ops.h>
31#include <asm/system.h> 33#include <asm/system.h>
32 34
33struct cpuinfo_mips cpu_data[NR_CPUS] __read_mostly; 35struct cpuinfo_mips cpu_data[NR_CPUS] __read_mostly;
@@ -269,7 +271,7 @@ static void __init bootmem_init(void)
269 271
270static void __init bootmem_init(void) 272static void __init bootmem_init(void)
271{ 273{
272 unsigned long init_begin, reserved_end; 274 unsigned long reserved_end;
273 unsigned long mapstart = ~0UL; 275 unsigned long mapstart = ~0UL;
274 unsigned long bootmap_size; 276 unsigned long bootmap_size;
275 int i; 277 int i;
@@ -344,7 +346,6 @@ static void __init bootmem_init(void)
344 min_low_pfn, max_low_pfn); 346 min_low_pfn, max_low_pfn);
345 347
346 348
347 init_begin = PFN_UP(__pa_symbol(&__init_begin));
348 for (i = 0; i < boot_mem_map.nr_map; i++) { 349 for (i = 0; i < boot_mem_map.nr_map; i++) {
349 unsigned long start, end; 350 unsigned long start, end;
350 351
@@ -352,8 +353,8 @@ static void __init bootmem_init(void)
352 end = PFN_DOWN(boot_mem_map.map[i].addr 353 end = PFN_DOWN(boot_mem_map.map[i].addr
353 + boot_mem_map.map[i].size); 354 + boot_mem_map.map[i].size);
354 355
355 if (start <= init_begin) 356 if (start <= min_low_pfn)
356 start = init_begin; 357 start = min_low_pfn;
357 if (start >= end) 358 if (start >= end)
358 continue; 359 continue;
359 360
@@ -423,13 +424,13 @@ static void __init bootmem_init(void)
423#endif /* CONFIG_SGI_IP27 */ 424#endif /* CONFIG_SGI_IP27 */
424 425
425/* 426/*
426 * arch_mem_init - initialize memory managment subsystem 427 * arch_mem_init - initialize memory management subsystem
427 * 428 *
428 * o plat_mem_setup() detects the memory configuration and will record detected 429 * o plat_mem_setup() detects the memory configuration and will record detected
429 * memory areas using add_memory_region. 430 * memory areas using add_memory_region.
430 * 431 *
431 * At this stage the memory configuration of the system is known to the 432 * At this stage the memory configuration of the system is known to the
432 * kernel but generic memory managment system is still entirely uninitialized. 433 * kernel but generic memory management system is still entirely uninitialized.
433 * 434 *
434 * o bootmem_init() 435 * o bootmem_init()
435 * o sparse_init() 436 * o sparse_init()
@@ -562,6 +563,7 @@ void __init setup_arch(char **cmdline_p)
562 } 563 }
563#endif 564#endif
564 cpu_report(); 565 cpu_report();
566 check_bugs_early();
565 567
566#if defined(CONFIG_VT) 568#if defined(CONFIG_VT)
567#if defined(CONFIG_VGA_CONSOLE) 569#if defined(CONFIG_VGA_CONSOLE)
@@ -574,9 +576,7 @@ void __init setup_arch(char **cmdline_p)
574 arch_mem_init(cmdline_p); 576 arch_mem_init(cmdline_p);
575 577
576 resource_init(); 578 resource_init();
577#ifdef CONFIG_SMP
578 plat_smp_setup(); 579 plat_smp_setup();
579#endif
580} 580}
581 581
582static int __init fpu_disable(char *s) 582static int __init fpu_disable(char *s)