Ticket #1832: patch

File patch, 624 bytes (added by Manne, on Jul 13, 2011 at 6:43:13 PM)

Patch for c/src/lib/libcpu/arm/at91rm9200/irq/irq.c

  • c/src/lib/libcpu/arm/at91rm9200/irq/irq.c

     
    2121
    2222void bsp_interrupt_dispatch(void)
    2323{
    24   rtems_vector_number vector = AIC_CTL_REG(AIC_ISR);
     24  rtems_vector_number vector = AIC_CTL_REG(AIC_IVR);
    2525
    2626  bsp_interrupt_handler_dispatch(vector);
    2727
     
    4444
    4545rtems_status_code bsp_interrupt_facility_initialize(void)
    4646{
     47  unsigned long i = 0;
     48
     49  for (i = 0; i < 32; ++i) {
     50    AIC_SVR_REG(i<<2) = i;
     51  }
     52
    4753  /* disable all interrupts */
    4854  AIC_CTL_REG(AIC_IDCR) = 0xffffffff;
    4955