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 (dm@engr.sgi.com)
10 #include <linux/init.h>
11 #include <linux/kernel.h>
13 #include <asm/bootinfo.h>
14 #include <asm/sgialib.h>
16 #undef DEBUG_PROM_INIT
18 /* Master romvec interface. */
19 struct linux_romvec
*romvec
;
21 LONG
*_prom_argv
, *_prom_envp
;
23 void __init
prom_init(void)
25 PSYSTEM_PARAMETER_BLOCK pb
= PROMBLOCK
;
28 _prom_argv
= (LONG
*) fw_arg1
;
29 _prom_envp
= (LONG
*) fw_arg2
;
31 if (pb
->magic
!= 0x53435241) {
32 prom_printf("Aieee, bad prom vector magic %08lx\n", pb
->magic
);
39 printk(KERN_INFO
"PROMLIB: ARC firmware Version %d Revision %d\n",
43 #ifdef DEBUG_PROM_INIT
44 prom_printf("Press a key to reboot\n");
46 ArcEnterInteractiveMode();