diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/mips/arc/init.c |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'arch/mips/arc/init.c')
-rw-r--r-- | arch/mips/arc/init.c | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/arch/mips/arc/init.c b/arch/mips/arc/init.c new file mode 100644 index 000000000000..76ab505ca693 --- /dev/null +++ b/arch/mips/arc/init.c | |||
@@ -0,0 +1,48 @@ | |||
1 | /* | ||
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 | ||
4 | * for more details. | ||
5 | * | ||
6 | * PROM library initialisation code. | ||
7 | * | ||
8 | * Copyright (C) 1996 David S. Miller (dm@engr.sgi.com) | ||
9 | */ | ||
10 | #include <linux/init.h> | ||
11 | #include <linux/kernel.h> | ||
12 | |||
13 | #include <asm/bootinfo.h> | ||
14 | #include <asm/sgialib.h> | ||
15 | |||
16 | #undef DEBUG_PROM_INIT | ||
17 | |||
18 | /* Master romvec interface. */ | ||
19 | struct linux_romvec *romvec; | ||
20 | int prom_argc; | ||
21 | LONG *_prom_argv, *_prom_envp; | ||
22 | |||
23 | void __init prom_init(void) | ||
24 | { | ||
25 | PSYSTEM_PARAMETER_BLOCK pb = PROMBLOCK; | ||
26 | romvec = ROMVECTOR; | ||
27 | prom_argc = fw_arg0; | ||
28 | _prom_argv = (LONG *) fw_arg1; | ||
29 | _prom_envp = (LONG *) fw_arg2; | ||
30 | |||
31 | if (pb->magic != 0x53435241) { | ||
32 | prom_printf("Aieee, bad prom vector magic %08lx\n", pb->magic); | ||
33 | while(1) | ||
34 | ; | ||
35 | } | ||
36 | |||
37 | prom_init_cmdline(); | ||
38 | prom_identify_arch(); | ||
39 | printk(KERN_INFO "PROMLIB: ARC firmware Version %d Revision %d\n", | ||
40 | pb->ver, pb->rev); | ||
41 | prom_meminit(); | ||
42 | |||
43 | #ifdef DEBUG_PROM_INIT | ||
44 | prom_printf("Press a key to reboot\n"); | ||
45 | prom_getchar(); | ||
46 | ArcEnterInteractiveMode(); | ||
47 | #endif | ||
48 | } | ||