1 #include <linux/init.h>
2 #include <linux/string.h>
3 #include <asm/addrspace.h>
4 #include <asm/bootinfo.h>
7 #define QEMU_PORT_BASE 0xb4000000
9 void __init prom_init(void)
13 cmdline = (int *) (CKSEG0 + (0x10 << 20) - 260);
14 if (*cmdline == 0x12345678) {
15 if (*(char *)(cmdline + 1))
16 strcpy(arcs_cmdline, (char *)(cmdline + 1));
17 add_memory_region(0x0<<20, cmdline[-1], BOOT_MEM_RAM);
19 add_memory_region(0x0<<20, 0x10<<20, BOOT_MEM_RAM);
23 set_io_port_base(QEMU_PORT_BASE);