Ignore:
Timestamp:
Sep 15, 2005, 7:40:08 PM (15 years ago)
Author:
Jay Monkman <jtm@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
b7115915
Parents:
e0f60887
Message:

2005-09-15 Jay Monkman <jtm@…>

PR 776/bsps

  • at91rm9200/irq/bsp_irq_asm.S, at91rm9200/irq/irq.h: Added code to pass interrupt vector number to ISR on AT91RM9200
Location:
c/src/lib/libcpu/arm/at91rm9200/irq
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/arm/at91rm9200/irq/bsp_irq_asm.S

    re0f60887 r1370850  
    1919 * Look at interrupt status register to determine source.
    2020 * From source, determine offset into expanded vector table
    21  * and load handler address into r0.
     21 * and load vector into r0 and handler address into r1.
    2222 */
    2323        ldr     r0, =0xFFFFF100   /* AIC_CTL_BASE + AIC_IVR */
    2424        ldr     r1, [r0]               
    2525        str     r1, [r0]          /* write back in case we are using protect */
     26
     27        ldr     r0, =0xFFFFF108   /* AIC_CTL_BASE + AIC_ISR */
     28        ldr     r0, [r0]          /* Read interrupt vector  */
    2629
    2730        stmdb   sp!,{lr}
  • c/src/lib/libcpu/arm/at91rm9200/irq/irq.h

    re0f60887 r1370850  
    7878struct  __rtems_irq_connect_data__;     /* forward declaratiuon */
    7979typedef unsigned int rtems_irq_number;
    80 typedef void (*rtems_irq_hdl)       (void);
     80typedef void (*rtems_irq_hdl)       (uint32_t vector);
    8181typedef void (*rtems_irq_enable)    (const struct __rtems_irq_connect_data__*);
    8282typedef void (*rtems_irq_disable)   (const struct __rtems_irq_connect_data__*);
Note: See TracChangeset for help on using the changeset viewer.