4.104.115
Line | |
---|
1 | /* |
---|
2 | * PXA255 Interrupt handler by Yang Xi <hiyangxi@gmail.com> |
---|
3 | * Copyright (c) 2004 by Jay Monkman <jtm@lopgindog.com> |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.rtems.com/license/LICENSE. |
---|
8 | * |
---|
9 | * $Id$ |
---|
10 | */ |
---|
11 | |
---|
12 | #define __asm__ |
---|
13 | |
---|
14 | .globl bsp_interrupt_dispatch |
---|
15 | bsp_interrupt_dispatch : |
---|
16 | /* |
---|
17 | * Look at interrupt status register to determine source. |
---|
18 | * From source, determine offset into expanded vector table |
---|
19 | * and load vector into r0 and handler address into r1. |
---|
20 | */ |
---|
21 | ldr r0,=0x40d00000 |
---|
22 | ldr r1,[r0] |
---|
23 | clz r0,r1 |
---|
24 | cmp r0,#32 |
---|
25 | moveq pc,lr /*All zeros*/ |
---|
26 | mov r2,#31 |
---|
27 | sub r0,r2,r0 |
---|
28 | ldr r2,=IRQ_table |
---|
29 | add r2,r2,r0,LSL #2 |
---|
30 | ldr r1,[r2] |
---|
31 | mov pc,r1 |
---|
32 | |
---|
33 | |
---|
Note: See
TracBrowser
for help on using the repository browser.