blob: dd2cc5320c089565ae5294d1461c686cbbecf0de [file] [log] [blame]
Mike Frysinger9171fc82008-03-30 15:46:13 -04001/*
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 */
14ENTRY(_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;
22ENDPROC(_trap)
23
24/* default entry point for interrupts */
25ENTRY(_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;
33ENDPROC(_evt_default)