<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2011-07-13)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>joel</strong></font>
 <font color='#225522'><em>(on branch rtems-4-10-branch)</em></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-07-13 Sebastian Huber <sebastian.huber@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).
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/arm/ChangeLog.diff?r1=text&tr1=1.79&r2=text&tr2=1.80&diff_format=h">M</a></td><td width='1%'>1.80</td><td width='100%'>c/src/lib/libcpu/arm/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/arm/ChangeLog.diff?r1=text&tr1=1.74.2.1&r2=text&tr2=1.74.2.2&diff_format=h">M</a></td><td width='1%'>1.74.2.2</td><td width='100%'>c/src/lib/libcpu/arm/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/arm/at91rm9200/irq/irq.c.diff?r1=text&tr1=1.6&r2=text&tr2=1.7&diff_format=h">M</a></td><td width='1%'>1.7</td><td width='100%'>c/src/lib/libcpu/arm/at91rm9200/irq/irq.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/arm/at91rm9200/irq/irq.c.diff?r1=text&tr1=1.6&r2=text&tr2=1.6.2.1&diff_format=h">M</a></td><td width='1%'>1.6.2.1</td><td width='100%'>c/src/lib/libcpu/arm/at91rm9200/irq/irq.c</td></tr>
</table>
<pre>
<font color='#006600'>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
</font><font color='#997700'>@@ -1,3 +1,13 @@
</font><font color='#000088'>+2011-07-13    Sebastian Huber <sebastian.huber@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).
+
</font> 2011-06-07        Sebastian Huber <sebastian.huber@embedded-brains.de>
 
        * shared/include/cache_.h: Moved content of "cache.h" to "cache_.h".

<font color='#006600'>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
</font><font color='#997700'>@@ -1,3 +1,13 @@
</font><font color='#000088'>+2011-07-13    Sebastian Huber <sebastian.huber@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).
+
</font> 2011-02-02        Ralf Corsépius <ralf.corsepius@rtems.org>
 
        * configure.ac: Require autoconf-2.68, automake-1.11.1.

<font color='#006600'>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
</font><font color='#997700'>@@ -21,7 +21,7 @@
</font> 
 void bsp_interrupt_dispatch(void)
 {
<font color='#880000'>-  rtems_vector_number vector = AIC_CTL_REG(AIC_ISR);
</font><font color='#000088'>+  rtems_vector_number vector = AIC_CTL_REG(AIC_IVR);
</font> 
   bsp_interrupt_handler_dispatch(vector);
 
<font color='#997700'>@@ -44,6 +44,12 @@
</font> 
 rtems_status_code bsp_interrupt_facility_initialize(void)
 {
<font color='#000088'>+  unsigned long i = 0;
+
+  for (i = 0; i < 32; ++i) {
+    AIC_SVR_REG(i<<2) = i;
+  }
+
</font>   /* disable all interrupts */
   AIC_CTL_REG(AIC_IDCR) = 0xffffffff;
 

<font color='#006600'>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
</font><font color='#997700'>@@ -21,7 +21,7 @@
</font> 
 void bsp_interrupt_dispatch(void)
 {
<font color='#880000'>-  rtems_vector_number vector = AIC_CTL_REG(AIC_ISR);
</font><font color='#000088'>+  rtems_vector_number vector = AIC_CTL_REG(AIC_IVR);
</font> 
   bsp_interrupt_handler_dispatch(vector);
 
<font color='#997700'>@@ -44,6 +44,12 @@
</font> 
 rtems_status_code bsp_interrupt_facility_initialize(void)
 {
<font color='#000088'>+  unsigned long i = 0;
+
+  for (i = 0; i < 32; ++i) {
+    AIC_SVR_REG(i<<2) = i;
+  }
+
</font>   /* disable all interrupts */
   AIC_CTL_REG(AIC_IDCR) = 0xffffffff;
 
</pre>
<p> </p>

<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>