ARM Interrupts

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Jul 13 07:06:28 UTC 2011


Can you please test this patch:

Index: c/src/lib/libcpu/arm/at91rm9200/irq/irq.c
===================================================================
--- c/src/lib/libcpu/arm/at91rm9200/irq/irq.c   (revision 5018)
+++ c/src/lib/libcpu/arm/at91rm9200/irq/irq.c   (working copy)
@@ -21,7 +21,7 @@

 void bsp_interrupt_dispatch(void)
 {
-  rtems_vector_number vector = AIC_CTL_REG(AIC_ISR);
+  rtems_vector_number vector = AIC_CTL_REG(AIC_IVR);

   bsp_interrupt_handler_dispatch(vector);

@@ -44,6 +44,12 @@

 rtems_status_code bsp_interrupt_facility_initialize(void)
 {
+  unsigned long i = 0;
+
+  for (i = 0; i < 32; ++i) {
+    AIC_SVR_REG(i) = i;
+  }
+
   /* disable all interrupts */
   AIC_CTL_REG(AIC_IDCR) = 0xffffffff;

-- 
Sebastian Huber, embedded brains GmbH

Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone   : +49 89 18 90 80 79-6
Fax     : +49 89 18 90 80 79-9
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the users mailing list