5 #include <linux/module.h>
6 #include <linux/string.h>
7 #include <linux/sched.h>
9 #include <linux/kernel.h>
10 #include <linux/reboot.h>
13 #include <linux/tty.h>
23 #include <asm/processor.h>
24 #include <asm/pgtable.h>
25 #include <asm/setup.h>
28 #include <asm/cputable.h>
29 #include <asm/bootx.h>
30 #include <asm/btext.h>
31 #include <asm/machdep.h>
32 #include <asm/uaccess.h>
34 #include <asm/sections.h>
35 #include <asm/nvram.h>
38 #include <asm/serial.h>
40 #include <asm/mmu_context.h>
59 #ifdef CONFIG_VGA_CONSOLE
60 unsigned long vgacon_remap_base;
140 ppc_md.power_save = ppc6xx_idle;
146 ppc_md.power_save = e500_idle;
149 ppc_md.progress(
"id mach(): done", 0x200);
177 #ifdef CONFIG_GENERIC_NVRAM
182 if (
ppc_md.nvram_read_val)
183 return ppc_md.nvram_read_val(addr);
190 if (
ppc_md.nvram_write_val)
191 ppc_md.nvram_write_val(addr, val);
198 return ppc_md.nvram_size();
216 ppc_md.progress(
" ", 0xffff);
227 static void __init irqstack_early_init(
void)
241 #if defined(CONFIG_BOOKE) || defined(CONFIG_40x)
244 unsigned int i, hw_cpu;
249 hw_cpu = get_hard_smp_processor_id(i);
261 #define exc_lvl_early_init()
272 unflatten_device_tree();
280 smp_setup_cpu_maps();
311 irqstack_early_init();
315 if (
ppc_md.progress )
ppc_md.progress(
"setup_arch: bootmem", 0x3eab);
317 #ifdef CONFIG_DUMMY_CONSOLE
323 if (
ppc_md.progress )
ppc_md.progress(
"arch: exit", 0x3eab);