1 /* 1 2 * This file is subject to the terms and condi 3 * License. See the file "COPYING" in the mai 4 * for more details. 5 * 6 * PROM library initialisation code. 7 * 8 * Copyright (C) 1996 David S. Miller (davem@d 9 */ 10 #include <linux/init.h> 11 #include <linux/kernel.h> 12 13 #include <asm/bootinfo.h> 14 #include <asm/sgialib.h> 15 #include <asm/smp-ops.h> 16 17 #undef DEBUG_PROM_INIT 18 19 /* Master romvec interface. */ 20 struct linux_romvec *romvec; 21 22 #if defined(CONFIG_64BIT) && defined(CONFIG_FW 23 /* stack for calling 32bit ARC prom */ 24 u64 o32_stk[4096]; 25 #endif 26 27 void __init prom_init(void) 28 { 29 PSYSTEM_PARAMETER_BLOCK pb = PROMBLOCK 30 31 romvec = ROMVECTOR; 32 33 if (pb->magic != 0x53435241) { 34 printk(KERN_CRIT "Aieee, bad p 35 (unsigned long) pb->mag 36 while(1) 37 ; 38 } 39 40 prom_init_cmdline(fw_arg0, (LONG *)fw_ 41 prom_identify_arch(); 42 printk(KERN_INFO "PROMLIB: ARC firmwar 43 pb->ver, pb->rev); 44 prom_meminit(); 45 46 #ifdef DEBUG_PROM_INIT 47 pr_info("Press a key to reboot\n"); 48 ArcRead(0, &c, 1, &cnt); 49 ArcEnterInteractiveMode(); 50 #endif 51 } 52
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.