diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2001-03-18 04:20:23 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2001-03-18 04:20:23 +0000 |
commit | e62014c38d171383c54eb1fee183f14f592521fc (patch) | |
tree | 4b7633718336d145b6173478d26a39cb9dcfe088 /arch/mips64/sgi-ip22 | |
parent | c66599c66b70d522363bceb2dec263e76470a3c8 (diff) |
Lots of cleanup from Keith with additional tweaks by me. More to
come. Stay frightened :-)
Diffstat (limited to 'arch/mips64/sgi-ip22')
-rw-r--r-- | arch/mips64/sgi-ip22/ip22-hpc.c | 6 | ||||
-rw-r--r-- | arch/mips64/sgi-ip22/ip22-int.c | 5 | ||||
-rw-r--r-- | arch/mips64/sgi-ip22/ip22-mc.c | 5 | ||||
-rw-r--r-- | arch/mips64/sgi-ip22/ip22-reset.c | 5 | ||||
-rw-r--r-- | arch/mips64/sgi-ip22/ip22-sc.c | 4 | ||||
-rw-r--r-- | arch/mips64/sgi-ip22/ip22-setup.c | 2 | ||||
-rw-r--r-- | arch/mips64/sgi-ip22/ip22-timer.c | 7 | ||||
-rw-r--r-- | arch/mips64/sgi-ip22/system.c | 24 |
8 files changed, 18 insertions, 40 deletions
diff --git a/arch/mips64/sgi-ip22/ip22-hpc.c b/arch/mips64/sgi-ip22/ip22-hpc.c index f0b688e91..fa90a72de 100644 --- a/arch/mips64/sgi-ip22/ip22-hpc.c +++ b/arch/mips64/sgi-ip22/ip22-hpc.c @@ -1,9 +1,8 @@ -/* $Id: ip22-hpc.c,v 1.2 1999/10/19 20:51:52 ralf Exp $ - * +/* * ip22-hpc.c: Routines for generic manipulation of the HPC controllers. * * Copyright (C) 1996 David S. Miller (dm@engr.sgi.com) - * Copyright (C) 1998, 1999 Ralf Baechle + * Copyright (C) 1998, 1999, 2001 Ralf Baechle */ #include <linux/init.h> #include <linux/types.h> @@ -11,7 +10,6 @@ #include <asm/addrspace.h> #include <asm/sgi/sgihpc.h> #include <asm/sgi/sgint23.h> -#include <asm/sgialib.h> #include <asm/bootinfo.h> #undef DEBUG_SGIHPC diff --git a/arch/mips64/sgi-ip22/ip22-int.c b/arch/mips64/sgi-ip22/ip22-int.c index 774b4fc33..d849422cd 100644 --- a/arch/mips64/sgi-ip22/ip22-int.c +++ b/arch/mips64/sgi-ip22/ip22-int.c @@ -34,7 +34,6 @@ #include <asm/sgi/sgi.h> #include <asm/sgi/sgihpc.h> #include <asm/sgi/sgint23.h> -#include <asm/sgialib.h> /* * Linux has a controller-independent x86 interrupt architecture. @@ -287,9 +286,7 @@ asmlinkage void do_IRQ(int irq, struct pt_regs * regs) irq_enter(cpu, irq); kstat.irqs[0][irq]++; - printk("Got irq %d, press a key.", irq); - prom_getchar(); - ArcEnterInteractiveMode(); + panic(KERN_DEBUG "Got irq %d, press a key.", irq); /* * mask and ack quickly, we don't want the irq controller diff --git a/arch/mips64/sgi-ip22/ip22-mc.c b/arch/mips64/sgi-ip22/ip22-mc.c index be8a91a0a..24187d117 100644 --- a/arch/mips64/sgi-ip22/ip22-mc.c +++ b/arch/mips64/sgi-ip22/ip22-mc.c @@ -1,5 +1,4 @@ -/* $Id: ip22-mc.c,v 1.2 1999/10/19 20:51:52 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. @@ -7,6 +6,7 @@ * indy_mc.c: Routines for manipulating the INDY memory controller. * * Copyright (C) 1996 David S. Miller (dm@engr.sgi.com) + * Copyright (C) 2001 Ralf Baechle (ralf@gnu.org) */ #include <linux/init.h> #include <linux/kernel.h> @@ -15,7 +15,6 @@ #include <asm/ptrace.h> #include <asm/sgi/sgimc.h> #include <asm/sgi/sgihpc.h> -#include <asm/sgialib.h> /* #define DEBUG_SGIMC */ diff --git a/arch/mips64/sgi-ip22/ip22-reset.c b/arch/mips64/sgi-ip22/ip22-reset.c index e8d4ff345..8ef06e48b 100644 --- a/arch/mips64/sgi-ip22/ip22-reset.c +++ b/arch/mips64/sgi-ip22/ip22-reset.c @@ -1,12 +1,11 @@ -/* $Id: ip22-reset.c,v 1.3 1999/10/08 21:07:51 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. * * Reset an IP22. * - * Copyright (C) 1997, 1998, 1999 by Ralf Baechle + * Copyright (C) 1997, 1998, 1999, 2001 by Ralf Baechle */ #include <linux/kernel.h> #include <linux/sched.h> diff --git a/arch/mips64/sgi-ip22/ip22-sc.c b/arch/mips64/sgi-ip22/ip22-sc.c index 7846f6c21..5e1c351a1 100644 --- a/arch/mips64/sgi-ip22/ip22-sc.c +++ b/arch/mips64/sgi-ip22/ip22-sc.c @@ -1,5 +1,4 @@ -/* $Id: ip22-sc.c,v 1.2 1999/12/04 03:59:01 ralf Exp $ - * +/* * indy_sc.c: Indy cache management functions. * * Copyright (C) 1997 Ralf Baechle (ralf@gnu.org), @@ -16,7 +15,6 @@ #include <asm/pgtable.h> #include <asm/system.h> #include <asm/bootinfo.h> -#include <asm/sgialib.h> #include <asm/mmu_context.h> /* Secondary cache size in bytes, if present. */ diff --git a/arch/mips64/sgi-ip22/ip22-setup.c b/arch/mips64/sgi-ip22/ip22-setup.c index a0f429429..f94a07077 100644 --- a/arch/mips64/sgi-ip22/ip22-setup.c +++ b/arch/mips64/sgi-ip22/ip22-setup.c @@ -145,7 +145,7 @@ void __init ip22_setup(void) * graphics console, it is set to "d" for the first serial * line and "d2" for the second serial line. */ - ctype = ArcArcGetEnvironmentVariable("console"); + ctype = ArcGetEnvironmentVariable("console"); if(*ctype == 'd') { if(*(ctype+1)=='2') console_setup ("ttyS1"); diff --git a/arch/mips64/sgi-ip22/ip22-timer.c b/arch/mips64/sgi-ip22/ip22-timer.c index e98ec596e..9ffc5dad1 100644 --- a/arch/mips64/sgi-ip22/ip22-timer.c +++ b/arch/mips64/sgi-ip22/ip22-timer.c @@ -1,5 +1,4 @@ -/* $Id: ip22-timer.c,v 1.6 2000/02/04 07:40:24 ralf Exp $ - * +/* * indy_timer.c: Setting up the clock on the INDY 8254 controller. * * Copyright (C) 1996 David S. Miller (dm@engr.sgi.com) @@ -238,9 +237,7 @@ void indy_8254timer_irq(void) irq_enter(cpu, irq); kstat.irqs[0][irq]++; - printk("indy_8254timer_irq: Whoops, should not have gotten this IRQ\n"); - prom_getchar(); - ArcEnterInteractiveMode(); + panic("indy_8254timer_irq: Whoops, should not have gotten this IRQ\n"); irq_exit(cpu, irq); } diff --git a/arch/mips64/sgi-ip22/system.c b/arch/mips64/sgi-ip22/system.c index ce8b81085..b6f485e76 100644 --- a/arch/mips64/sgi-ip22/system.c +++ b/arch/mips64/sgi-ip22/system.c @@ -1,5 +1,4 @@ -/* $Id: system.c,v 1.3 1999/10/19 20:51:52 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. @@ -7,6 +6,7 @@ * system.c: Probe the system type using ARCS prom interface library. * * Copyright (C) 1996 David S. Miller (dm@engr.sgi.com) + * Copyright (C) 2000, 2001 Ralf Baechle (ralf@gnu.org) */ #include <linux/init.h> #include <linux/kernel.h> @@ -46,10 +46,7 @@ static int __init string_to_cpu(char *s) if(!strcmp(s, sgi_cputable[i].name)) return sgi_cputable[i].type; } - prom_printf("\nYeee, could not determine MIPS cpu type <%s>\n", s); - prom_printf("press a key to reboot\n"); - prom_getchar(); - ArcEnterInteractiveMode(); + panic("\nYeee, could not determine MIPS cpu type <%s>", s); return 0; } @@ -74,23 +71,16 @@ void __init sgi_sysinit(void) int ncpus = 0; if(p->type == Cpu) { - if(++ncpus > 1) { - prom_printf("\nYeee, SGI MP not ready yet\n"); - prom_printf("press a key to reboot\n"); - prom_getchar(); - ArcEnterInteractiveMode(); - } + if (++ncpus > 1) + panic("\nYeee, SGI MP not ready yet"); printk("CPU: %s ", p->iname); cpup = p; cputype = string_to_cpu(cpup->iname); } p = ArcGetPeer(p); } - if(cputype == -1) { - prom_printf("\nYeee, could not find cpu ARCS component\n"); - prom_printf("press a key to reboot\n"); - prom_getchar(); - ArcEnterInteractiveMode(); + if (cputype == -1) { + panic("\nYeee, could not find cpu ARCS component"); } p = ArcGetChild(cpup); while(p) { |