4.104.115
Line | |
---|
1 | /* bsp_irq_asm.S |
---|
2 | * |
---|
3 | * This file contains the implementation of the IRQ handler |
---|
4 | * for a specific BSP |
---|
5 | * |
---|
6 | * CopyRight (C) 2000 Canon Research France SA. |
---|
7 | * Emmanuel Raguet, mailto:raguet@crf.canon.fr |
---|
8 | * |
---|
9 | * The license and distribution terms for this file may be |
---|
10 | * found in found in the file LICENSE in this distribution or at |
---|
11 | * http://www.rtems.com/license/LICENSE. |
---|
12 | * |
---|
13 | * $Id$ |
---|
14 | */ |
---|
15 | |
---|
16 | #define __asm__ |
---|
17 | |
---|
18 | /* |
---|
19 | * Function to obtain, execute an IT handler and acknowledge the IT |
---|
20 | */ |
---|
21 | |
---|
22 | .globl bsp_interrupt_dispatch |
---|
23 | |
---|
24 | bsp_interrupt_dispatch : |
---|
25 | |
---|
26 | ldr r0, =0x4A000014 /* Read rINTOFFSET */ |
---|
27 | ldr r1, [r0] |
---|
28 | |
---|
29 | ldr r0, =bsp_vector_table |
---|
30 | ldr r0, [r0, r1, LSL #2] /* Read the address */ |
---|
31 | |
---|
32 | stmdb sp!,{lr} |
---|
33 | ldr lr, =IRQ_return /* prepare the return from handler */ |
---|
34 | |
---|
35 | mov pc, r0 |
---|
36 | |
---|
37 | IRQ_return: |
---|
38 | ldmia sp!,{lr} |
---|
39 | |
---|
40 | mov pc, lr |
---|
Note: See
TracBrowser
for help on using the repository browser.