[SCSI] drivers/scsi/dpt_i2o.c: fix compile warnings
[linux/fpc-iii.git] / arch / m68knommu / platform / 5307 / vectors.c
blobac313a160d8dd948f625a42ffa38277ae3cbd530
1 /***************************************************************************/
3 /*
4 * linux/arch/m68knommu/platform/5307/vectors.c
6 * Copyright (C) 1999-2003, Greg Ungerer <gerg@snapgear.com>
7 */
9 /***************************************************************************/
11 #include <linux/config.h>
12 #include <linux/kernel.h>
13 #include <linux/sched.h>
14 #include <linux/param.h>
15 #include <linux/init.h>
16 #include <linux/unistd.h>
17 #include <linux/delay.h>
18 #include <asm/irq.h>
19 #include <asm/dma.h>
20 #include <asm/traps.h>
21 #include <asm/machdep.h>
22 #include <asm/coldfire.h>
23 #include <asm/mcftimer.h>
24 #include <asm/mcfsim.h>
25 #include <asm/mcfdma.h>
26 #include <asm/mcfwdebug.h>
28 /***************************************************************************/
30 #ifdef TRAP_DBG_INTERRUPT
32 asmlinkage void dbginterrupt_c(struct frame *fp)
34 extern void dump(struct pt_regs *fp);
35 printk(KERN_DEBUG "%s(%d): BUS ERROR TRAP\n", __FILE__, __LINE__);
36 dump((struct pt_regs *) fp);
37 asm("halt");
40 #endif
42 /***************************************************************************/
44 extern e_vector *_ramvec;
46 void set_evector(int vecnum, void (*handler)(void))
48 if (vecnum >= 0 && vecnum <= 255)
49 _ramvec[vecnum] = handler;
52 /***************************************************************************/
54 /* Assembler routines */
55 asmlinkage void buserr(void);
56 asmlinkage void trap(void);
57 asmlinkage void system_call(void);
58 asmlinkage void inthandler(void);
60 void __init coldfire_trap_init(void)
62 int i;
65 * There is a common trap handler and common interrupt
66 * handler that handle almost every vector. We treat
67 * the system call and bus error special, they get their
68 * own first level handlers.
70 for (i = 3; (i <= 23); i++)
71 _ramvec[i] = trap;
72 for (i = 33; (i <= 63); i++)
73 _ramvec[i] = trap;
74 for (i = 24; (i <= 31); i++)
75 _ramvec[i] = inthandler;
76 for (i = 64; (i < 255); i++)
77 _ramvec[i] = inthandler;
78 _ramvec[255] = 0;
80 _ramvec[2] = buserr;
81 _ramvec[32] = system_call;
83 #ifdef TRAP_DBG_INTERRUPT
84 _ramvec[12] = dbginterrupt;
85 #endif
88 /***************************************************************************/
90 void coldfire_reset(void)
92 HARD_RESET_NOW();
95 /***************************************************************************/