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

4.104.115
Last change on this file since ac7af4a was 9832a22c, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on 07/17/09 at 13:52:16

exception handling maintenance

  • Property mode set to 100644
File size: 964 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.