source: rtems/c/src/lib/libcpu/arm/pxa255/irq/bsp_irq_asm.S @ c499856

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on Mar 20, 2014 at 9:10:47 PM

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 727 bytes
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.org/license/LICENSE.
8 */
9
10#define __asm__
11
12        .globl bsp_interrupt_dispatch
13bsp_interrupt_dispatch :
14/*
15 * Look at interrupt status register to determine source.
16 * From source, determine offset into expanded vector table
17 * and load vector into r0 and handler address into r1.
18 */
19        ldr     r0,=0x40d00000
20        ldr     r1,[r0]
21        clz     r0,r1
22        cmp     r0,#32
23        moveq   pc,lr   /*All zeros*/
24        mov     r2,#31
25        sub     r0,r2,r0
26        ldr     r2,=IRQ_table
27        add     r2,r2,r0,LSL #2
28        ldr     r1,[r2]
29        mov     pc,r1
30
31
Note: See TracBrowser for help on using the repository browser.