Mike Frysinger | 94bae5c | 2008-03-30 15:46:13 -0400 | [diff] [blame] | 1 | /* |
| 2 | * interrupt.S - trampoline default exceptions/interrupts to C handlers |
| 3 | * |
| 4 | * Copyright (c) 2005-2007 Analog Devices Inc. |
| 5 | * Licensed under the GPL-2 or later. |
| 6 | */ |
| 7 | |
| 8 | #include <asm/blackfin.h> |
| 9 | #include <asm/entry.h> |
| 10 | |
| 11 | .text |
| 12 | |
| 13 | /* default entry point for exceptions */ |
| 14 | ENTRY(_trap) |
| 15 | SAVE_ALL_SYS |
| 16 | r0 = sp; /* stack frame pt_regs pointer argument ==> r0 */ |
| 17 | sp += -12; |
| 18 | call _trap_c; |
| 19 | sp += 12; |
| 20 | RESTORE_ALL_SYS |
| 21 | rtx; |
| 22 | ENDPROC(_trap) |
| 23 | |
| 24 | /* default entry point for interrupts */ |
| 25 | ENTRY(_evt_default) |
| 26 | SAVE_ALL_SYS |
| 27 | r0 = sp; /* stack frame pt_regs pointer argument ==> r0 */ |
| 28 | sp += -12; |
| 29 | call _bfin_panic; |
| 30 | sp += 12; |
| 31 | RESTORE_ALL_SYS |
| 32 | rti; |
| 33 | ENDPROC(_evt_default) |