2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * PROM library initialisation code.
8 * Copyright (C) 1996 David S. Miller (davem@davemloft.net)
10 #include <linux/init.h>
11 #include <linux/kernel.h>
13 #include <asm/bootinfo.h>
14 #include <asm/sgialib.h>
15 #include <asm/smp-ops.h>
17 #undef DEBUG_PROM_INIT
19 /* Master romvec interface. */
20 struct linux_romvec
*romvec
;
22 #if defined(CONFIG_64BIT) && defined(CONFIG_FW_ARC32)
23 /* stack for calling 32bit ARC prom */
27 void __init
prom_init(void)
29 PSYSTEM_PARAMETER_BLOCK pb
= PROMBLOCK
;
33 if (pb
->magic
!= 0x53435241) {
34 printk(KERN_CRIT
"Aieee, bad prom vector magic %08lx\n",
35 (unsigned long) pb
->magic
);
40 prom_init_cmdline(fw_arg0
, (LONG
*)fw_arg1
);
42 printk(KERN_INFO
"PROMLIB: ARC firmware Version %d Revision %d\n",
46 #ifdef DEBUG_PROM_INIT
47 pr_info("Press a key to reboot\n");
48 ArcRead(0, &c
, 1, &cnt
);
49 ArcEnterInteractiveMode();