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

4.104.11
Last change on this file since 359e537 was 359e537, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 30, 2009 at 5:09:41 AM

Whitespace removal.

  • Property mode set to 100644
File size: 916 bytes
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
24bsp_interrupt_dispatch :
25
26        ldr     r0, =0x14400014  /* 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
37IRQ_return:
38        ldmia sp!,{lr}
39
40        mov pc, lr
Note: See TracBrowser for help on using the repository browser.