blob: bfddfdee0b6592867d3801b8c3500c55e76f3d33 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
Paul Mackerras0a26b132006-03-28 10:22:10 +11002 * Common prep boot and setup code.
Linus Torvalds1da177e2005-04-16 15:20:36 -07003 */
4
Linus Torvalds1da177e2005-04-16 15:20:36 -07005#include <linux/module.h>
6#include <linux/string.h>
7#include <linux/sched.h>
8#include <linux/init.h>
9#include <linux/kernel.h>
10#include <linux/reboot.h>
11#include <linux/delay.h>
12#include <linux/initrd.h>
Jon Smirl894673e2006-07-10 04:44:13 -070013#include <linux/screen_info.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070014#include <linux/bootmem.h>
15#include <linux/seq_file.h>
16#include <linux/root_dev.h>
17#include <linux/cpu.h>
18#include <linux/console.h>
19
20#include <asm/residual.h>
21#include <asm/io.h>
22#include <asm/prom.h>
23#include <asm/processor.h>
24#include <asm/pgtable.h>
25#include <asm/bootinfo.h>
26#include <asm/setup.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070027#include <asm/smp.h>
28#include <asm/elf.h>
29#include <asm/cputable.h>
30#include <asm/bootx.h>
31#include <asm/btext.h>
32#include <asm/machdep.h>
33#include <asm/uaccess.h>
34#include <asm/system.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070035#include <asm/sections.h>
36#include <asm/nvram.h>
37#include <asm/xmon.h>
38#include <asm/ocp.h>
39
Kumar Galac42f3ad2008-01-27 14:06:14 -060040#define USES_PPC_SYS (defined(CONFIG_MPC10X_BRIDGE) || defined(CONFIG_8260) || \
Kumar Gala8e8fff02005-09-03 15:55:34 -070041 defined(CONFIG_PPC_MPC52xx))
42
43#if USES_PPC_SYS
Linus Torvalds1da177e2005-04-16 15:20:36 -070044#include <asm/ppc_sys.h>
45#endif
46
47#if defined CONFIG_KGDB
48#include <asm/kgdb.h>
49#endif
50
51extern void platform_init(unsigned long r3, unsigned long r4,
52 unsigned long r5, unsigned long r6, unsigned long r7);
Linus Torvalds1da177e2005-04-16 15:20:36 -070053extern void reloc_got2(unsigned long offset);
54
55extern void ppc6xx_idle(void);
56extern void power4_idle(void);
57
58extern boot_infos_t *boot_infos;
Linus Torvalds1da177e2005-04-16 15:20:36 -070059
60/* Used with the BI_MEMSIZE bootinfo parameter to store the memory
61 size value reported by the boot loader. */
62unsigned long boot_mem_size;
63
64unsigned long ISA_DMA_THRESHOLD;
Jon Loeligerb8f114d2005-09-21 14:54:51 -050065unsigned int DMA_MODE_READ;
66unsigned int DMA_MODE_WRITE;
Linus Torvalds1da177e2005-04-16 15:20:36 -070067
Paul Mackerras0a26b132006-03-28 10:22:10 +110068#ifdef CONFIG_PPC_PREP
Linus Torvalds1da177e2005-04-16 15:20:36 -070069extern void prep_init(unsigned long r3, unsigned long r4,
70 unsigned long r5, unsigned long r6, unsigned long r7);
Paul Mackerras14cf11a2005-09-26 16:04:21 +100071
72dev_t boot_dev;
Paul Mackerras0a26b132006-03-28 10:22:10 +110073#endif /* CONFIG_PPC_PREP */
Linus Torvalds1da177e2005-04-16 15:20:36 -070074
Paul Mackerrasfd582ec2005-10-11 22:08:12 +100075int have_of;
76EXPORT_SYMBOL(have_of);
77
Paul Mackerras35d81a42005-10-11 22:03:09 +100078#ifdef __DO_IRQ_CANON
79int ppc_do_canonicalize_irqs;
80EXPORT_SYMBOL(ppc_do_canonicalize_irqs);
81#endif
82
Linus Torvalds1da177e2005-04-16 15:20:36 -070083#ifdef CONFIG_VGA_CONSOLE
84unsigned long vgacon_remap_base;
85#endif
86
87struct machdep_calls ppc_md;
88
89/*
90 * These are used in binfmt_elf.c to put aux entries on the stack
91 * for each elf executable being started.
92 */
93int dcache_bsize;
94int icache_bsize;
95int ucache_bsize;
96
97#if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_FB_VGA16) || \
98 defined(CONFIG_FB_VGA16_MODULE) || defined(CONFIG_FB_VESA)
99struct screen_info screen_info = {
100 0, 25, /* orig-x, orig-y */
101 0, /* unused */
102 0, /* orig-video-page */
103 0, /* orig-video-mode */
104 80, /* orig-video-cols */
105 0,0,0, /* ega_ax, ega_bx, ega_cx */
106 25, /* orig-video-lines */
107 1, /* orig-video-isVGA */
108 16 /* orig-video-points */
109};
110#endif /* CONFIG_VGA_CONSOLE || CONFIG_FB_VGA16 || CONFIG_FB_VESA */
111
112void machine_restart(char *cmd)
113{
114#ifdef CONFIG_NVRAM
115 nvram_sync();
116#endif
117 ppc_md.restart(cmd);
118}
119
Corey Minyard477bcae2006-09-06 09:02:53 -0500120static void ppc_generic_power_off(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700121{
Linus Torvalds1da177e2005-04-16 15:20:36 -0700122 ppc_md.power_off();
123}
124
Linus Torvalds1da177e2005-04-16 15:20:36 -0700125void machine_halt(void)
126{
127#ifdef CONFIG_NVRAM
128 nvram_sync();
129#endif
130 ppc_md.halt();
131}
132
Corey Minyard477bcae2006-09-06 09:02:53 -0500133void (*pm_power_off)(void) = ppc_generic_power_off;
134
135void machine_power_off(void)
136{
137#ifdef CONFIG_NVRAM
138 nvram_sync();
139#endif
140 if (pm_power_off)
141 pm_power_off();
142 ppc_generic_power_off();
143}
Linus Torvalds1da177e2005-04-16 15:20:36 -0700144
145#ifdef CONFIG_TAU
146extern u32 cpu_temp(unsigned long cpu);
147extern u32 cpu_temp_both(unsigned long cpu);
148#endif /* CONFIG_TAU */
149
150int show_cpuinfo(struct seq_file *m, void *v)
151{
152 int i = (int) v - 1;
153 int err = 0;
154 unsigned int pvr;
155 unsigned short maj, min;
156 unsigned long lpj;
157
158 if (i >= NR_CPUS) {
159 /* Show summary information */
160#ifdef CONFIG_SMP
161 unsigned long bogosum = 0;
Andrew Morton394e3902006-03-23 03:01:05 -0800162 for_each_online_cpu(i)
163 bogosum += cpu_data[i].loops_per_jiffy;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700164 seq_printf(m, "total bogomips\t: %lu.%02lu\n",
165 bogosum/(500000/HZ), bogosum/(5000/HZ) % 100);
166#endif /* CONFIG_SMP */
167
168 if (ppc_md.show_cpuinfo != NULL)
169 err = ppc_md.show_cpuinfo(m);
170 return err;
171 }
172
173#ifdef CONFIG_SMP
174 if (!cpu_online(i))
175 return 0;
176 pvr = cpu_data[i].pvr;
177 lpj = cpu_data[i].loops_per_jiffy;
178#else
179 pvr = mfspr(SPRN_PVR);
180 lpj = loops_per_jiffy;
181#endif
182
183 seq_printf(m, "processor\t: %d\n", i);
184 seq_printf(m, "cpu\t\t: ");
185
Kumar Gala400d2212005-09-27 15:13:12 -0500186 if (cur_cpu_spec->pvr_mask)
187 seq_printf(m, "%s", cur_cpu_spec->cpu_name);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700188 else
189 seq_printf(m, "unknown (%08x)", pvr);
190#ifdef CONFIG_ALTIVEC
Kumar Gala400d2212005-09-27 15:13:12 -0500191 if (cur_cpu_spec->cpu_features & CPU_FTR_ALTIVEC)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700192 seq_printf(m, ", altivec supported");
193#endif
194 seq_printf(m, "\n");
195
196#ifdef CONFIG_TAU
Kumar Gala400d2212005-09-27 15:13:12 -0500197 if (cur_cpu_spec->cpu_features & CPU_FTR_TAU) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700198#ifdef CONFIG_TAU_AVERAGE
199 /* more straightforward, but potentially misleading */
200 seq_printf(m, "temperature \t: %u C (uncalibrated)\n",
201 cpu_temp(i));
202#else
203 /* show the actual temp sensor range */
204 u32 temp;
205 temp = cpu_temp_both(i);
206 seq_printf(m, "temperature \t: %u-%u C (uncalibrated)\n",
207 temp & 0xff, temp >> 16);
208#endif
209 }
210#endif /* CONFIG_TAU */
211
212 if (ppc_md.show_percpuinfo != NULL) {
213 err = ppc_md.show_percpuinfo(m, i);
214 if (err)
215 return err;
216 }
217
Kumar Gala696c2b92005-05-05 16:15:10 -0700218 /* If we are a Freescale core do a simple check so
219 * we dont have to keep adding cases in the future */
220 if ((PVR_VER(pvr) & 0x8000) == 0x8000) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700221 maj = PVR_MAJ(pvr);
222 min = PVR_MIN(pvr);
Kumar Gala696c2b92005-05-05 16:15:10 -0700223 } else {
224 switch (PVR_VER(pvr)) {
225 case 0x0020: /* 403 family */
226 maj = PVR_MAJ(pvr) + 1;
227 min = PVR_MIN(pvr);
228 break;
229 case 0x1008: /* 740P/750P ?? */
230 maj = ((pvr >> 8) & 0xFF) - 1;
231 min = pvr & 0xFF;
232 break;
233 default:
234 maj = (pvr >> 8) & 0xFF;
235 min = pvr & 0xFF;
236 break;
237 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700238 }
239
240 seq_printf(m, "revision\t: %hd.%hd (pvr %04x %04x)\n",
241 maj, min, PVR_VER(pvr), PVR_REV(pvr));
242
243 seq_printf(m, "bogomips\t: %lu.%02lu\n",
244 lpj / (500000/HZ), (lpj / (5000/HZ)) % 100);
245
Kumar Gala8e8fff02005-09-03 15:55:34 -0700246#if USES_PPC_SYS
Linus Torvalds1da177e2005-04-16 15:20:36 -0700247 if (cur_ppc_sys_spec->ppc_sys_name)
248 seq_printf(m, "chipset\t\t: %s\n",
249 cur_ppc_sys_spec->ppc_sys_name);
250#endif
251
252#ifdef CONFIG_SMP
253 seq_printf(m, "\n");
254#endif
255
256 return 0;
257}
258
259static void *c_start(struct seq_file *m, loff_t *pos)
260{
261 int i = *pos;
262
263 return i <= NR_CPUS? (void *) (i + 1): NULL;
264}
265
266static void *c_next(struct seq_file *m, void *v, loff_t *pos)
267{
268 ++*pos;
269 return c_start(m, pos);
270}
271
272static void c_stop(struct seq_file *m, void *v)
273{
274}
275
Jan Engelhardt03a44822008-02-08 04:21:19 -0800276const struct seq_operations cpuinfo_op = {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700277 .start =c_start,
278 .next = c_next,
279 .stop = c_stop,
280 .show = show_cpuinfo,
281};
282
283/*
284 * We're called here very early in the boot. We determine the machine
285 * type and call the appropriate low-level setup functions.
286 * -- Cort <cort@fsmlabs.com>
287 *
288 * Note that the kernel may be running at an address which is different
289 * from the address that it was linked at, so we must use RELOC/PTRRELOC
290 * to access static data (including strings). -- paulus
291 */
292__init
293unsigned long
294early_init(int r3, int r4, int r5)
295{
296 unsigned long phys;
297 unsigned long offset = reloc_offset();
Benjamin Herrenschmidt42c4aaa2006-10-24 16:42:40 +1000298 struct cpu_spec *spec;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700299
300 /* Default */
301 phys = offset + KERNELBASE;
302
303 /* First zero the BSS -- use memset, some arches don't have
304 * caches on yet */
305 memset_io(PTRRELOC(&__bss_start), 0, _end - __bss_start);
306
307 /*
308 * Identify the CPU type and fix up code sections
309 * that depend on which cpu we have.
310 */
Josh Boyer3d1d6622007-11-17 04:29:56 +1100311#if defined(CONFIG_440EP) && defined(CONFIG_PPC_FPU)
312 /* We pass the virtual PVR here for 440EP as 440EP and 440GR have
313 * identical PVRs and there is no reliable way to check for the FPU
314 */
315 spec = identify_cpu(offset, (mfspr(SPRN_PVR) | 0x8));
316#else
Paul Mackerras974a76f2006-11-10 20:38:53 +1100317 spec = identify_cpu(offset, mfspr(SPRN_PVR));
Josh Boyer3d1d6622007-11-17 04:29:56 +1100318#endif
Benjamin Herrenschmidt0909c8c2006-10-20 11:47:18 +1000319 do_feature_fixups(spec->cpu_features,
Benjamin Herrenschmidt42c4aaa2006-10-24 16:42:40 +1000320 PTRRELOC(&__start___ftr_fixup),
321 PTRRELOC(&__stop___ftr_fixup));
Linus Torvalds1da177e2005-04-16 15:20:36 -0700322
Linus Torvalds1da177e2005-04-16 15:20:36 -0700323 return phys;
324}
325
Paul Mackerras0a26b132006-03-28 10:22:10 +1100326#ifdef CONFIG_PPC_PREP
Linus Torvalds1da177e2005-04-16 15:20:36 -0700327/*
Paul Mackerras0a26b132006-03-28 10:22:10 +1100328 * The PPC_PREP version of platform_init...
Linus Torvalds1da177e2005-04-16 15:20:36 -0700329 */
330void __init
331platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
332 unsigned long r6, unsigned long r7)
333{
334#ifdef CONFIG_BOOTX_TEXT
335 if (boot_text_mapped) {
336 btext_clearscreen();
337 btext_welcome();
338 }
339#endif
340
341 parse_bootinfo(find_bootinfo());
342
Paul Mackerras0a26b132006-03-28 10:22:10 +1100343 prep_init(r3, r4, r5, r6, r7);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700344}
Paul Mackerras0a26b132006-03-28 10:22:10 +1100345#endif /* CONFIG_PPC_PREP */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700346
347struct bi_record *find_bootinfo(void)
348{
349 struct bi_record *rec;
350
351 rec = (struct bi_record *)_ALIGN((ulong)__bss_start+(1<<20)-1,(1<<20));
352 if ( rec->tag != BI_FIRST ) {
353 /*
354 * This 0x10000 offset is a terrible hack but it will go away when
355 * we have the bootloader handle all the relocation and
356 * prom calls -- Cort
357 */
358 rec = (struct bi_record *)_ALIGN((ulong)__bss_start+0x10000+(1<<20)-1,(1<<20));
359 if ( rec->tag != BI_FIRST )
360 return NULL;
361 }
362 return rec;
363}
364
365void parse_bootinfo(struct bi_record *rec)
366{
367 if (rec == NULL || rec->tag != BI_FIRST)
368 return;
369 while (rec->tag != BI_LAST) {
370 ulong *data = rec->data;
371 switch (rec->tag) {
372 case BI_CMD_LINE:
373 strlcpy(cmd_line, (void *)data, sizeof(cmd_line));
374 break;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700375#ifdef CONFIG_BLK_DEV_INITRD
376 case BI_INITRD:
377 initrd_start = data[0] + KERNELBASE;
378 initrd_end = data[0] + data[1] + KERNELBASE;
379 break;
380#endif /* CONFIG_BLK_DEV_INITRD */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700381 case BI_MEMSIZE:
382 boot_mem_size = data[0];
383 break;
384 }
385 rec = (struct bi_record *)((ulong)rec + rec->size);
386 }
387}
388
389/*
390 * Find out what kind of machine we're on and save any data we need
391 * from the early boot process (devtree is copied on pmac by prom_init()).
392 * This is called very early on the boot process, after a minimal
393 * MMU environment has been set up but before MMU_init is called.
394 */
395void __init
396machine_init(unsigned long r3, unsigned long r4, unsigned long r5,
397 unsigned long r6, unsigned long r7)
398{
399#ifdef CONFIG_CMDLINE
400 strlcpy(cmd_line, CONFIG_CMDLINE, sizeof(cmd_line));
401#endif /* CONFIG_CMDLINE */
402
403#ifdef CONFIG_6xx
404 ppc_md.power_save = ppc6xx_idle;
405#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700406
407 platform_init(r3, r4, r5, r6, r7);
408
409 if (ppc_md.progress)
410 ppc_md.progress("id mach(): done", 0x200);
411}
Kumar Galaa2f40cc2005-09-03 15:55:33 -0700412#ifdef CONFIG_BOOKE_WDT
413/* Checks wdt=x and wdt_period=xx command-line option */
414int __init early_parse_wdt(char *p)
415{
Kumar Galaa2f40cc2005-09-03 15:55:33 -0700416 if (p && strncmp(p, "0", 1) != 0)
Kumar Gala39cdc4b2005-09-03 15:55:39 -0700417 booke_wdt_enabled = 1;
Kumar Galaa2f40cc2005-09-03 15:55:33 -0700418
419 return 0;
420}
421early_param("wdt", early_parse_wdt);
422
423int __init early_parse_wdt_period (char *p)
424{
Kumar Galaa2f40cc2005-09-03 15:55:33 -0700425 if (p)
Kumar Gala39cdc4b2005-09-03 15:55:39 -0700426 booke_wdt_period = simple_strtoul(p, NULL, 0);
Kumar Galaa2f40cc2005-09-03 15:55:33 -0700427
428 return 0;
429}
430early_param("wdt_period", early_parse_wdt_period);
431#endif /* CONFIG_BOOKE_WDT */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700432
433/* Checks "l2cr=xxxx" command-line option */
434int __init ppc_setup_l2cr(char *str)
435{
436 if (cpu_has_feature(CPU_FTR_L2CR)) {
437 unsigned long val = simple_strtoul(str, NULL, 0);
438 printk(KERN_INFO "l2cr set to %lx\n", val);
439 _set_L2CR(0); /* force invalidate by disable cache */
440 _set_L2CR(val); /* and enable it */
441 }
442 return 1;
443}
444__setup("l2cr=", ppc_setup_l2cr);
445
446#ifdef CONFIG_GENERIC_NVRAM
447
448/* Generic nvram hooks used by drivers/char/gen_nvram.c */
449unsigned char nvram_read_byte(int addr)
450{
451 if (ppc_md.nvram_read_val)
452 return ppc_md.nvram_read_val(addr);
453 return 0xff;
454}
455EXPORT_SYMBOL(nvram_read_byte);
456
457void nvram_write_byte(unsigned char val, int addr)
458{
459 if (ppc_md.nvram_write_val)
460 ppc_md.nvram_write_val(addr, val);
461}
462EXPORT_SYMBOL(nvram_write_byte);
463
464void nvram_sync(void)
465{
466 if (ppc_md.nvram_sync)
467 ppc_md.nvram_sync();
468}
469EXPORT_SYMBOL(nvram_sync);
470
471#endif /* CONFIG_NVRAM */
472
473static struct cpu cpu_devices[NR_CPUS];
474
475int __init ppc_init(void)
476{
477 int i;
478
479 /* clear the progress line */
480 if ( ppc_md.progress ) ppc_md.progress(" ", 0xffff);
481
482 /* register CPU devices */
KAMEZAWA Hiroyukib848e0a2006-03-28 14:50:52 -0800483 for_each_possible_cpu(i)
KAMEZAWA Hiroyuki76b67ed2006-06-27 02:53:41 -0700484 register_cpu(&cpu_devices[i], i);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700485
486 /* call platform init */
487 if (ppc_md.init != NULL) {
488 ppc_md.init();
489 }
490 return 0;
491}
492
493arch_initcall(ppc_init);
494
495/* Warning, IO base is not yet inited */
496void __init setup_arch(char **cmdline_p)
497{
498 extern char *klimit;
499 extern void do_init_bootmem(void);
500
501 /* so udelay does something sensible, assume <= 1000 bogomips */
502 loops_per_jiffy = 500000000 / HZ;
503
Benjamin Herrenschmidt51d30822005-11-23 17:57:25 +1100504 if (ppc_md.init_early)
505 ppc_md.init_early();
506
Linus Torvalds1da177e2005-04-16 15:20:36 -0700507#ifdef CONFIG_XMON
Paul Mackerrasfd582ec2005-10-11 22:08:12 +1000508 xmon_init(1);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700509 if (strstr(cmd_line, "xmon"))
510 xmon(NULL);
511#endif /* CONFIG_XMON */
512 if ( ppc_md.progress ) ppc_md.progress("setup_arch: enter", 0x3eab);
513
514#if defined(CONFIG_KGDB)
515 if (ppc_md.kgdb_map_scc)
516 ppc_md.kgdb_map_scc();
517 set_debug_traps();
518 if (strstr(cmd_line, "gdb")) {
519 if (ppc_md.progress)
520 ppc_md.progress("setup_arch: kgdb breakpoint", 0x4000);
521 printk("kgdb breakpoint activated\n");
522 breakpoint();
523 }
524#endif
525
526 /*
527 * Set cache line size based on type of cpu as a default.
528 * Systems with OF can look in the properties on the cpu node(s)
529 * for a possibly more accurate value.
530 */
David Gibson4508dc22007-06-13 14:52:57 +1000531 if (! cpu_has_feature(CPU_FTR_UNIFIED_ID_CACHE)) {
Kumar Gala400d2212005-09-27 15:13:12 -0500532 dcache_bsize = cur_cpu_spec->dcache_bsize;
533 icache_bsize = cur_cpu_spec->icache_bsize;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700534 ucache_bsize = 0;
535 } else
536 ucache_bsize = dcache_bsize = icache_bsize
Kumar Gala400d2212005-09-27 15:13:12 -0500537 = cur_cpu_spec->dcache_bsize;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700538
539 /* reboot on panic */
540 panic_timeout = 180;
541
542 init_mm.start_code = PAGE_OFFSET;
543 init_mm.end_code = (unsigned long) _etext;
544 init_mm.end_data = (unsigned long) _edata;
545 init_mm.brk = (unsigned long) klimit;
546
547 /* Save unparsed command line copy for /proc/cmdline */
Alon Bar-Levbf71cec2007-02-12 00:54:18 -0800548 strlcpy(boot_command_line, cmd_line, COMMAND_LINE_SIZE);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700549 *cmdline_p = cmd_line;
550
Paul Mackerras19bbdf02005-05-17 16:48:39 +1000551 parse_early_param();
552
Linus Torvalds1da177e2005-04-16 15:20:36 -0700553 /* set up the bootmem stuff with available memory */
554 do_init_bootmem();
555 if ( ppc_md.progress ) ppc_md.progress("setup_arch: bootmem", 0x3eab);
556
557#ifdef CONFIG_PPC_OCP
558 /* Initialize OCP device list */
559 ocp_early_init();
560 if ( ppc_md.progress ) ppc_md.progress("ocp: exit", 0x3eab);
561#endif
562
563#ifdef CONFIG_DUMMY_CONSOLE
564 conswitchp = &dummy_con;
565#endif
566
567 ppc_md.setup_arch();
568 if ( ppc_md.progress ) ppc_md.progress("arch: exit", 0x3eab);
569
570 paging_init();
Linus Torvalds1da177e2005-04-16 15:20:36 -0700571}