blob: 51e8094f52d6e9f46f5ff71a806de653db578a4a [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>
Paul Mackerras0d4b6b92008-05-12 22:57:51 +100039#include <asm/irq.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070040
Kumar Galac42f3ad2008-01-27 14:06:14 -060041#define USES_PPC_SYS (defined(CONFIG_MPC10X_BRIDGE) || defined(CONFIG_8260) || \
Kumar Gala8e8fff02005-09-03 15:55:34 -070042 defined(CONFIG_PPC_MPC52xx))
43
44#if USES_PPC_SYS
Linus Torvalds1da177e2005-04-16 15:20:36 -070045#include <asm/ppc_sys.h>
46#endif
47
48#if defined CONFIG_KGDB
49#include <asm/kgdb.h>
50#endif
51
52extern void platform_init(unsigned long r3, unsigned long r4,
53 unsigned long r5, unsigned long r6, unsigned long r7);
Linus Torvalds1da177e2005-04-16 15:20:36 -070054extern void reloc_got2(unsigned long offset);
55
56extern void ppc6xx_idle(void);
57extern void power4_idle(void);
58
59extern boot_infos_t *boot_infos;
Linus Torvalds1da177e2005-04-16 15:20:36 -070060
61/* Used with the BI_MEMSIZE bootinfo parameter to store the memory
62 size value reported by the boot loader. */
63unsigned long boot_mem_size;
64
65unsigned long ISA_DMA_THRESHOLD;
Jon Loeligerb8f114d2005-09-21 14:54:51 -050066unsigned int DMA_MODE_READ;
67unsigned int DMA_MODE_WRITE;
Linus Torvalds1da177e2005-04-16 15:20:36 -070068
Paul Mackerras0a26b132006-03-28 10:22:10 +110069#ifdef CONFIG_PPC_PREP
Linus Torvalds1da177e2005-04-16 15:20:36 -070070extern void prep_init(unsigned long r3, unsigned long r4,
71 unsigned long r5, unsigned long r6, unsigned long r7);
Paul Mackerras14cf11a2005-09-26 16:04:21 +100072
73dev_t boot_dev;
Paul Mackerras0a26b132006-03-28 10:22:10 +110074#endif /* CONFIG_PPC_PREP */
Linus Torvalds1da177e2005-04-16 15:20:36 -070075
Paul Mackerrasfd582ec2005-10-11 22:08:12 +100076int have_of;
77EXPORT_SYMBOL(have_of);
78
Paul Mackerras35d81a42005-10-11 22:03:09 +100079#ifdef __DO_IRQ_CANON
80int ppc_do_canonicalize_irqs;
81EXPORT_SYMBOL(ppc_do_canonicalize_irqs);
82#endif
83
Linus Torvalds1da177e2005-04-16 15:20:36 -070084#ifdef CONFIG_VGA_CONSOLE
85unsigned long vgacon_remap_base;
86#endif
87
88struct machdep_calls ppc_md;
89
90/*
91 * These are used in binfmt_elf.c to put aux entries on the stack
92 * for each elf executable being started.
93 */
94int dcache_bsize;
95int icache_bsize;
96int ucache_bsize;
97
98#if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_FB_VGA16) || \
99 defined(CONFIG_FB_VGA16_MODULE) || defined(CONFIG_FB_VESA)
100struct screen_info screen_info = {
101 0, 25, /* orig-x, orig-y */
102 0, /* unused */
103 0, /* orig-video-page */
104 0, /* orig-video-mode */
105 80, /* orig-video-cols */
106 0,0,0, /* ega_ax, ega_bx, ega_cx */
107 25, /* orig-video-lines */
108 1, /* orig-video-isVGA */
109 16 /* orig-video-points */
110};
111#endif /* CONFIG_VGA_CONSOLE || CONFIG_FB_VGA16 || CONFIG_FB_VESA */
112
113void machine_restart(char *cmd)
114{
115#ifdef CONFIG_NVRAM
116 nvram_sync();
117#endif
118 ppc_md.restart(cmd);
119}
120
Corey Minyard477bcae2006-09-06 09:02:53 -0500121static void ppc_generic_power_off(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700122{
Linus Torvalds1da177e2005-04-16 15:20:36 -0700123 ppc_md.power_off();
124}
125
Linus Torvalds1da177e2005-04-16 15:20:36 -0700126void machine_halt(void)
127{
128#ifdef CONFIG_NVRAM
129 nvram_sync();
130#endif
131 ppc_md.halt();
132}
133
Corey Minyard477bcae2006-09-06 09:02:53 -0500134void (*pm_power_off)(void) = ppc_generic_power_off;
135
136void machine_power_off(void)
137{
138#ifdef CONFIG_NVRAM
139 nvram_sync();
140#endif
141 if (pm_power_off)
142 pm_power_off();
143 ppc_generic_power_off();
144}
Linus Torvalds1da177e2005-04-16 15:20:36 -0700145
146#ifdef CONFIG_TAU
147extern u32 cpu_temp(unsigned long cpu);
148extern u32 cpu_temp_both(unsigned long cpu);
149#endif /* CONFIG_TAU */
150
151int show_cpuinfo(struct seq_file *m, void *v)
152{
153 int i = (int) v - 1;
154 int err = 0;
155 unsigned int pvr;
156 unsigned short maj, min;
157 unsigned long lpj;
158
159 if (i >= NR_CPUS) {
160 /* Show summary information */
161#ifdef CONFIG_SMP
162 unsigned long bogosum = 0;
Andrew Morton394e3902006-03-23 03:01:05 -0800163 for_each_online_cpu(i)
164 bogosum += cpu_data[i].loops_per_jiffy;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700165 seq_printf(m, "total bogomips\t: %lu.%02lu\n",
166 bogosum/(500000/HZ), bogosum/(5000/HZ) % 100);
167#endif /* CONFIG_SMP */
168
169 if (ppc_md.show_cpuinfo != NULL)
170 err = ppc_md.show_cpuinfo(m);
171 return err;
172 }
173
174#ifdef CONFIG_SMP
175 if (!cpu_online(i))
176 return 0;
177 pvr = cpu_data[i].pvr;
178 lpj = cpu_data[i].loops_per_jiffy;
179#else
180 pvr = mfspr(SPRN_PVR);
181 lpj = loops_per_jiffy;
182#endif
183
184 seq_printf(m, "processor\t: %d\n", i);
185 seq_printf(m, "cpu\t\t: ");
186
Kumar Gala400d2212005-09-27 15:13:12 -0500187 if (cur_cpu_spec->pvr_mask)
188 seq_printf(m, "%s", cur_cpu_spec->cpu_name);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700189 else
190 seq_printf(m, "unknown (%08x)", pvr);
191#ifdef CONFIG_ALTIVEC
Kumar Gala400d2212005-09-27 15:13:12 -0500192 if (cur_cpu_spec->cpu_features & CPU_FTR_ALTIVEC)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700193 seq_printf(m, ", altivec supported");
194#endif
195 seq_printf(m, "\n");
196
197#ifdef CONFIG_TAU
Kumar Gala400d2212005-09-27 15:13:12 -0500198 if (cur_cpu_spec->cpu_features & CPU_FTR_TAU) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700199#ifdef CONFIG_TAU_AVERAGE
200 /* more straightforward, but potentially misleading */
201 seq_printf(m, "temperature \t: %u C (uncalibrated)\n",
202 cpu_temp(i));
203#else
204 /* show the actual temp sensor range */
205 u32 temp;
206 temp = cpu_temp_both(i);
207 seq_printf(m, "temperature \t: %u-%u C (uncalibrated)\n",
208 temp & 0xff, temp >> 16);
209#endif
210 }
211#endif /* CONFIG_TAU */
212
213 if (ppc_md.show_percpuinfo != NULL) {
214 err = ppc_md.show_percpuinfo(m, i);
215 if (err)
216 return err;
217 }
218
Kumar Gala696c2b92005-05-05 16:15:10 -0700219 /* If we are a Freescale core do a simple check so
220 * we dont have to keep adding cases in the future */
221 if ((PVR_VER(pvr) & 0x8000) == 0x8000) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700222 maj = PVR_MAJ(pvr);
223 min = PVR_MIN(pvr);
Kumar Gala696c2b92005-05-05 16:15:10 -0700224 } else {
225 switch (PVR_VER(pvr)) {
226 case 0x0020: /* 403 family */
227 maj = PVR_MAJ(pvr) + 1;
228 min = PVR_MIN(pvr);
229 break;
230 case 0x1008: /* 740P/750P ?? */
231 maj = ((pvr >> 8) & 0xFF) - 1;
232 min = pvr & 0xFF;
233 break;
234 default:
235 maj = (pvr >> 8) & 0xFF;
236 min = pvr & 0xFF;
237 break;
238 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700239 }
240
241 seq_printf(m, "revision\t: %hd.%hd (pvr %04x %04x)\n",
242 maj, min, PVR_VER(pvr), PVR_REV(pvr));
243
244 seq_printf(m, "bogomips\t: %lu.%02lu\n",
245 lpj / (500000/HZ), (lpj / (5000/HZ)) % 100);
246
Kumar Gala8e8fff02005-09-03 15:55:34 -0700247#if USES_PPC_SYS
Linus Torvalds1da177e2005-04-16 15:20:36 -0700248 if (cur_ppc_sys_spec->ppc_sys_name)
249 seq_printf(m, "chipset\t\t: %s\n",
250 cur_ppc_sys_spec->ppc_sys_name);
251#endif
252
253#ifdef CONFIG_SMP
254 seq_printf(m, "\n");
255#endif
256
257 return 0;
258}
259
260static void *c_start(struct seq_file *m, loff_t *pos)
261{
262 int i = *pos;
263
264 return i <= NR_CPUS? (void *) (i + 1): NULL;
265}
266
267static void *c_next(struct seq_file *m, void *v, loff_t *pos)
268{
269 ++*pos;
270 return c_start(m, pos);
271}
272
273static void c_stop(struct seq_file *m, void *v)
274{
275}
276
Jan Engelhardt03a44822008-02-08 04:21:19 -0800277const struct seq_operations cpuinfo_op = {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700278 .start =c_start,
279 .next = c_next,
280 .stop = c_stop,
281 .show = show_cpuinfo,
282};
283
284/*
285 * We're called here very early in the boot. We determine the machine
286 * type and call the appropriate low-level setup functions.
287 * -- Cort <cort@fsmlabs.com>
288 *
289 * Note that the kernel may be running at an address which is different
290 * from the address that it was linked at, so we must use RELOC/PTRRELOC
291 * to access static data (including strings). -- paulus
292 */
293__init
294unsigned long
295early_init(int r3, int r4, int r5)
296{
297 unsigned long phys;
298 unsigned long offset = reloc_offset();
Benjamin Herrenschmidt42c4aaa2006-10-24 16:42:40 +1000299 struct cpu_spec *spec;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700300
301 /* Default */
302 phys = offset + KERNELBASE;
303
304 /* First zero the BSS -- use memset, some arches don't have
305 * caches on yet */
306 memset_io(PTRRELOC(&__bss_start), 0, _end - __bss_start);
307
308 /*
309 * Identify the CPU type and fix up code sections
310 * that depend on which cpu we have.
311 */
Josh Boyer3d1d6622007-11-17 04:29:56 +1100312#if defined(CONFIG_440EP) && defined(CONFIG_PPC_FPU)
313 /* We pass the virtual PVR here for 440EP as 440EP and 440GR have
314 * identical PVRs and there is no reliable way to check for the FPU
315 */
316 spec = identify_cpu(offset, (mfspr(SPRN_PVR) | 0x8));
317#else
Paul Mackerras974a76f2006-11-10 20:38:53 +1100318 spec = identify_cpu(offset, mfspr(SPRN_PVR));
Josh Boyer3d1d6622007-11-17 04:29:56 +1100319#endif
Benjamin Herrenschmidt0909c8c2006-10-20 11:47:18 +1000320 do_feature_fixups(spec->cpu_features,
Benjamin Herrenschmidt42c4aaa2006-10-24 16:42:40 +1000321 PTRRELOC(&__start___ftr_fixup),
322 PTRRELOC(&__stop___ftr_fixup));
Linus Torvalds1da177e2005-04-16 15:20:36 -0700323
Linus Torvalds1da177e2005-04-16 15:20:36 -0700324 return phys;
325}
326
Paul Mackerras0a26b132006-03-28 10:22:10 +1100327#ifdef CONFIG_PPC_PREP
Linus Torvalds1da177e2005-04-16 15:20:36 -0700328/*
Paul Mackerras0a26b132006-03-28 10:22:10 +1100329 * The PPC_PREP version of platform_init...
Linus Torvalds1da177e2005-04-16 15:20:36 -0700330 */
331void __init
332platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
333 unsigned long r6, unsigned long r7)
334{
335#ifdef CONFIG_BOOTX_TEXT
336 if (boot_text_mapped) {
337 btext_clearscreen();
338 btext_welcome();
339 }
340#endif
341
342 parse_bootinfo(find_bootinfo());
343
Paul Mackerras0a26b132006-03-28 10:22:10 +1100344 prep_init(r3, r4, r5, r6, r7);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700345}
Paul Mackerras0a26b132006-03-28 10:22:10 +1100346#endif /* CONFIG_PPC_PREP */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700347
348struct bi_record *find_bootinfo(void)
349{
350 struct bi_record *rec;
351
352 rec = (struct bi_record *)_ALIGN((ulong)__bss_start+(1<<20)-1,(1<<20));
353 if ( rec->tag != BI_FIRST ) {
354 /*
355 * This 0x10000 offset is a terrible hack but it will go away when
356 * we have the bootloader handle all the relocation and
357 * prom calls -- Cort
358 */
359 rec = (struct bi_record *)_ALIGN((ulong)__bss_start+0x10000+(1<<20)-1,(1<<20));
360 if ( rec->tag != BI_FIRST )
361 return NULL;
362 }
363 return rec;
364}
365
366void parse_bootinfo(struct bi_record *rec)
367{
368 if (rec == NULL || rec->tag != BI_FIRST)
369 return;
370 while (rec->tag != BI_LAST) {
371 ulong *data = rec->data;
372 switch (rec->tag) {
373 case BI_CMD_LINE:
374 strlcpy(cmd_line, (void *)data, sizeof(cmd_line));
375 break;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700376#ifdef CONFIG_BLK_DEV_INITRD
377 case BI_INITRD:
378 initrd_start = data[0] + KERNELBASE;
379 initrd_end = data[0] + data[1] + KERNELBASE;
380 break;
381#endif /* CONFIG_BLK_DEV_INITRD */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700382 case BI_MEMSIZE:
383 boot_mem_size = data[0];
384 break;
385 }
386 rec = (struct bi_record *)((ulong)rec + rec->size);
387 }
388}
389
390/*
391 * Find out what kind of machine we're on and save any data we need
392 * from the early boot process (devtree is copied on pmac by prom_init()).
393 * This is called very early on the boot process, after a minimal
394 * MMU environment has been set up but before MMU_init is called.
395 */
396void __init
397machine_init(unsigned long r3, unsigned long r4, unsigned long r5,
398 unsigned long r6, unsigned long r7)
399{
400#ifdef CONFIG_CMDLINE
401 strlcpy(cmd_line, CONFIG_CMDLINE, sizeof(cmd_line));
402#endif /* CONFIG_CMDLINE */
403
404#ifdef CONFIG_6xx
405 ppc_md.power_save = ppc6xx_idle;
406#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700407
408 platform_init(r3, r4, r5, r6, r7);
409
410 if (ppc_md.progress)
411 ppc_md.progress("id mach(): done", 0x200);
412}
Kumar Galaa2f40cc2005-09-03 15:55:33 -0700413#ifdef CONFIG_BOOKE_WDT
414/* Checks wdt=x and wdt_period=xx command-line option */
415int __init early_parse_wdt(char *p)
416{
Kumar Galaa2f40cc2005-09-03 15:55:33 -0700417 if (p && strncmp(p, "0", 1) != 0)
Kumar Gala39cdc4b2005-09-03 15:55:39 -0700418 booke_wdt_enabled = 1;
Kumar Galaa2f40cc2005-09-03 15:55:33 -0700419
420 return 0;
421}
422early_param("wdt", early_parse_wdt);
423
424int __init early_parse_wdt_period (char *p)
425{
Kumar Galaa2f40cc2005-09-03 15:55:33 -0700426 if (p)
Kumar Gala39cdc4b2005-09-03 15:55:39 -0700427 booke_wdt_period = simple_strtoul(p, NULL, 0);
Kumar Galaa2f40cc2005-09-03 15:55:33 -0700428
429 return 0;
430}
431early_param("wdt_period", early_parse_wdt_period);
432#endif /* CONFIG_BOOKE_WDT */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700433
434/* Checks "l2cr=xxxx" command-line option */
435int __init ppc_setup_l2cr(char *str)
436{
437 if (cpu_has_feature(CPU_FTR_L2CR)) {
438 unsigned long val = simple_strtoul(str, NULL, 0);
439 printk(KERN_INFO "l2cr set to %lx\n", val);
440 _set_L2CR(0); /* force invalidate by disable cache */
441 _set_L2CR(val); /* and enable it */
442 }
443 return 1;
444}
445__setup("l2cr=", ppc_setup_l2cr);
446
447#ifdef CONFIG_GENERIC_NVRAM
448
449/* Generic nvram hooks used by drivers/char/gen_nvram.c */
450unsigned char nvram_read_byte(int addr)
451{
452 if (ppc_md.nvram_read_val)
453 return ppc_md.nvram_read_val(addr);
454 return 0xff;
455}
456EXPORT_SYMBOL(nvram_read_byte);
457
458void nvram_write_byte(unsigned char val, int addr)
459{
460 if (ppc_md.nvram_write_val)
461 ppc_md.nvram_write_val(addr, val);
462}
463EXPORT_SYMBOL(nvram_write_byte);
464
465void nvram_sync(void)
466{
467 if (ppc_md.nvram_sync)
468 ppc_md.nvram_sync();
469}
470EXPORT_SYMBOL(nvram_sync);
471
472#endif /* CONFIG_NVRAM */
473
474static struct cpu cpu_devices[NR_CPUS];
475
476int __init ppc_init(void)
477{
478 int i;
479
480 /* clear the progress line */
481 if ( ppc_md.progress ) ppc_md.progress(" ", 0xffff);
482
483 /* register CPU devices */
KAMEZAWA Hiroyukib848e0a2006-03-28 14:50:52 -0800484 for_each_possible_cpu(i)
KAMEZAWA Hiroyuki76b67ed2006-06-27 02:53:41 -0700485 register_cpu(&cpu_devices[i], i);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700486
487 /* call platform init */
488 if (ppc_md.init != NULL) {
489 ppc_md.init();
490 }
491 return 0;
492}
493
494arch_initcall(ppc_init);
495
496/* Warning, IO base is not yet inited */
497void __init setup_arch(char **cmdline_p)
498{
499 extern char *klimit;
500 extern void do_init_bootmem(void);
501
502 /* so udelay does something sensible, assume <= 1000 bogomips */
503 loops_per_jiffy = 500000000 / HZ;
504
Benjamin Herrenschmidt51d30822005-11-23 17:57:25 +1100505 if (ppc_md.init_early)
506 ppc_md.init_early();
507
Linus Torvalds1da177e2005-04-16 15:20:36 -0700508#ifdef CONFIG_XMON
Paul Mackerrasfd582ec2005-10-11 22:08:12 +1000509 xmon_init(1);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700510 if (strstr(cmd_line, "xmon"))
511 xmon(NULL);
512#endif /* CONFIG_XMON */
513 if ( ppc_md.progress ) ppc_md.progress("setup_arch: enter", 0x3eab);
514
515#if defined(CONFIG_KGDB)
516 if (ppc_md.kgdb_map_scc)
517 ppc_md.kgdb_map_scc();
518 set_debug_traps();
519 if (strstr(cmd_line, "gdb")) {
520 if (ppc_md.progress)
521 ppc_md.progress("setup_arch: kgdb breakpoint", 0x4000);
522 printk("kgdb breakpoint activated\n");
523 breakpoint();
524 }
525#endif
526
527 /*
528 * Set cache line size based on type of cpu as a default.
529 * Systems with OF can look in the properties on the cpu node(s)
530 * for a possibly more accurate value.
531 */
David Gibson4508dc22007-06-13 14:52:57 +1000532 if (! cpu_has_feature(CPU_FTR_UNIFIED_ID_CACHE)) {
Kumar Gala400d2212005-09-27 15:13:12 -0500533 dcache_bsize = cur_cpu_spec->dcache_bsize;
534 icache_bsize = cur_cpu_spec->icache_bsize;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700535 ucache_bsize = 0;
536 } else
537 ucache_bsize = dcache_bsize = icache_bsize
Kumar Gala400d2212005-09-27 15:13:12 -0500538 = cur_cpu_spec->dcache_bsize;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700539
540 /* reboot on panic */
541 panic_timeout = 180;
542
543 init_mm.start_code = PAGE_OFFSET;
544 init_mm.end_code = (unsigned long) _etext;
545 init_mm.end_data = (unsigned long) _edata;
546 init_mm.brk = (unsigned long) klimit;
547
548 /* Save unparsed command line copy for /proc/cmdline */
Alon Bar-Levbf71cec2007-02-12 00:54:18 -0800549 strlcpy(boot_command_line, cmd_line, COMMAND_LINE_SIZE);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700550 *cmdline_p = cmd_line;
551
Paul Mackerras19bbdf02005-05-17 16:48:39 +1000552 parse_early_param();
553
Linus Torvalds1da177e2005-04-16 15:20:36 -0700554 /* set up the bootmem stuff with available memory */
555 do_init_bootmem();
556 if ( ppc_md.progress ) ppc_md.progress("setup_arch: bootmem", 0x3eab);
557
558#ifdef CONFIG_PPC_OCP
559 /* Initialize OCP device list */
560 ocp_early_init();
561 if ( ppc_md.progress ) ppc_md.progress("ocp: exit", 0x3eab);
562#endif
563
564#ifdef CONFIG_DUMMY_CONSOLE
565 conswitchp = &dummy_con;
566#endif
567
568 ppc_md.setup_arch();
569 if ( ppc_md.progress ) ppc_md.progress("arch: exit", 0x3eab);
570
571 paging_init();
Linus Torvalds1da177e2005-04-16 15:20:36 -0700572}