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

4.104.114.84.95
Last change on this file since e8c785c6 was 479ac2d8, checked in by Jay Monkman <jtm@…>, on Mar 11, 2005 at 7:26:45 AM

2005-03-11 Philippe Simons <loki_666@…>

  • Makefile.am, configure.ac: Added gp32 BSP.
  • s3c2400/.cvsignore, s3c2400/Makefile.am, s3c2400/clock/clockdrv.c, s3c2400/include/s3c2400.h, s3c2400/irq/bsp_irq_asm.S, s3c2400/irq/bsp_irq_init.c, s3c2400/irq/irq.c, s3c2400/irq/irq.h, s3c2400/timer/timer.c: New files.
  • Property mode set to 100644
File size: 952 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 ExecuteITHandler
23       
24ExecuteITHandler :     
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.