change log for rtems (2011-07-13)

rtems-vc at rtems.org rtems-vc at rtems.org
Wed Jul 13 21:10:46 UTC 2011


 *joel* (on branch rtems-4-10-branch):
2011-07-13	Sebastian Huber <sebastian.huber at embedded-brains.de>

	PR 1832/libcpu
	* at91rm9200/irq/irq.c: he bsp_interrupt_dispatch routine does not
	determine the correct interrupt source number. According to the
	datasheet, the reading of the interrupt vector register (AIC_IVR)
	notifies the hardware that the OS is taken care of the interrupt.
	Only after AIC_IVR have been read can the correct source number be
	read from the interrupt status register (AIC_ISR).

M   1.80  c/src/lib/libcpu/arm/ChangeLog
M 1.74.2.2  c/src/lib/libcpu/arm/ChangeLog
M    1.7  c/src/lib/libcpu/arm/at91rm9200/irq/irq.c
M 1.6.2.1  c/src/lib/libcpu/arm/at91rm9200/irq/irq.c

diff -u rtems/c/src/lib/libcpu/arm/ChangeLog:1.79 rtems/c/src/lib/libcpu/arm/ChangeLog:1.80
--- rtems/c/src/lib/libcpu/arm/ChangeLog:1.79	Tue Jun  7 02:58:16 2011
+++ rtems/c/src/lib/libcpu/arm/ChangeLog	Wed Jul 13 15:24:04 2011
@@ -1,3 +1,13 @@
+2011-07-13	Sebastian Huber <sebastian.huber at embedded-brains.de>
+
+	PR 1832/libcpu
+	* at91rm9200/irq/irq.c: he bsp_interrupt_dispatch routine does not
+	determine the correct interrupt source number. According to the
+	datasheet, the reading of the interrupt vector register (AIC_IVR)
+	notifies the hardware that the OS is taken care of the interrupt.
+	Only after AIC_IVR have been read can the correct source number be
+	read from the interrupt status register (AIC_ISR).
+
 2011-06-07	Sebastian Huber <sebastian.huber at embedded-brains.de>
 
 	* shared/include/cache_.h: Moved content of "cache.h" to "cache_.h".

diff -u rtems/c/src/lib/libcpu/arm/ChangeLog:1.74.2.1 rtems/c/src/lib/libcpu/arm/ChangeLog:1.74.2.2
--- rtems/c/src/lib/libcpu/arm/ChangeLog:1.74.2.1	Wed Feb  2 09:17:22 2011
+++ rtems/c/src/lib/libcpu/arm/ChangeLog	Wed Jul 13 15:24:19 2011
@@ -1,3 +1,13 @@
+2011-07-13	Sebastian Huber <sebastian.huber at embedded-brains.de>
+
+	PR 1832/libcpu
+	* at91rm9200/irq/irq.c: he bsp_interrupt_dispatch routine does not
+	determine the correct interrupt source number. According to the
+	datasheet, the reading of the interrupt vector register (AIC_IVR)
+	notifies the hardware that the OS is taken care of the interrupt.
+	Only after AIC_IVR have been read can the correct source number be
+	read from the interrupt status register (AIC_ISR).
+
 2011-02-02	Ralf Corsépius <ralf.corsepius at rtems.org>
 
 	* configure.ac: Require autoconf-2.68, automake-1.11.1.

diff -u rtems/c/src/lib/libcpu/arm/at91rm9200/irq/irq.c:1.6 rtems/c/src/lib/libcpu/arm/at91rm9200/irq/irq.c:1.7
--- rtems/c/src/lib/libcpu/arm/at91rm9200/irq/irq.c:1.6	Fri Apr 30 08:15:49 2010
+++ rtems/c/src/lib/libcpu/arm/at91rm9200/irq/irq.c	Wed Jul 13 15:24:04 2011
@@ -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<<2) = i;
+  }
+
   /* disable all interrupts */
   AIC_CTL_REG(AIC_IDCR) = 0xffffffff;
 

diff -u rtems/c/src/lib/libcpu/arm/at91rm9200/irq/irq.c:1.6 rtems/c/src/lib/libcpu/arm/at91rm9200/irq/irq.c:1.6.2.1
--- rtems/c/src/lib/libcpu/arm/at91rm9200/irq/irq.c:1.6	Fri Apr 30 08:15:49 2010
+++ rtems/c/src/lib/libcpu/arm/at91rm9200/irq/irq.c	Wed Jul 13 15:24:19 2011
@@ -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<<2) = i;
+  }
+
   /* disable all interrupts */
   AIC_CTL_REG(AIC_IDCR) = 0xffffffff;
 



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20110713/e4f862e8/attachment-0001.html>


More information about the vc mailing list