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

4.104.115
Last change on this file since 359e537 was 359e537, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/30/09 at 05:09:41

Whitespace removal.

  • Property mode set to 100755
File size: 739 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.com/license/LICENSE.
8 *
9 *  $Id$
10 */
11
12#define __asm__
13
14        .globl bsp_interrupt_dispatch
15bsp_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.