diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2001-01-17 04:35:00 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2001-01-17 04:35:00 +0000 |
commit | d60b0354c6cc4d90a04a6434ebac6c68b6a34d5b (patch) | |
tree | e0a1bc9a1b11d2260b31dfbab59a265fb4625aa0 /arch/mips/arc/init.c | |
parent | 8269dd0a57ed4456d0a2fdf0e338cf56f3829e04 (diff) |
Ok, I got better things to do than hacking kernels for machines which
I don't even have at hand right now, but we got too many bug reports
of the ``IP22 crashes during early startup'' type. This patch makes
printk usable on IP22 from the very early startup on. It's not
perfect and I think it might result in printk's information getting
duplicated for systems with serial console but let's tackle that later.
Diffstat (limited to 'arch/mips/arc/init.c')
-rw-r--r-- | arch/mips/arc/init.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/mips/arc/init.c b/arch/mips/arc/init.c index 76b5ade80..873128c4c 100644 --- a/arch/mips/arc/init.c +++ b/arch/mips/arc/init.c @@ -1,4 +1,4 @@ -/* $Id: init.c,v 1.5 2000/03/07 15:45:27 ralf Exp $ +/* * This file is subject to the terms and conditions of the GNU General Public+ * License. See the file "COPYING" in the main directory of this archive * for more details. @@ -23,6 +23,8 @@ unsigned short prom_vers, prom_rev; extern void prom_testtree(void); +extern void arc_setup_console(void); + void __init prom_init(int argc, char **argv, char **envp, int *prom_vec) { struct linux_promblock *pb; @@ -33,7 +35,9 @@ void __init prom_init(int argc, char **argv, char **envp, int *prom_vec) prom_argv = argv; prom_envp = envp; - if(pb->magic != 0x53435241) { + arc_setup_console(); + + if (pb->magic != 0x53435241) { prom_printf("Aieee, bad prom vector magic %08lx\n", pb->magic); while(1) ; |