<!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 (2010-05-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>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-05-13 Joel Sherrill <joel.sherrill@oarcorp.com>

        * Makefile.am, configure.ac: rbtx4925, rbtx4938, and hurricane had very
        similar versions of exception. Now all use shared/irq/exception.S
        * startup/exception.S: Removed.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/mips/hurricane/ChangeLog.diff?r1=text&tr1=1.50&r2=text&tr2=1.51&diff_format=h">M</a></td><td width='1%'>1.51</td><td width='100%'>c/src/lib/libbsp/mips/hurricane/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/mips/hurricane/Makefile.am.diff?r1=text&tr1=1.15&r2=text&tr2=1.16&diff_format=h">M</a></td><td width='1%'>1.16</td><td width='100%'>c/src/lib/libbsp/mips/hurricane/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/mips/hurricane/configure.ac.diff?r1=text&tr1=1.9&r2=text&tr2=1.10&diff_format=h">M</a></td><td width='1%'>1.10</td><td width='100%'>c/src/lib/libbsp/mips/hurricane/configure.ac</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/mips/hurricane/startup/exception.S?rev=1.5&content-type=text/vnd.viewcvs-markup">R</a></td><td width='1%'><font color="#880000">1.5</font></td><td width='100%'><font color="#880000">c/src/lib/libbsp/mips/hurricane/startup/exception.S</font></td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/mips/hurricane/ChangeLog:1.50 rtems/c/src/lib/libbsp/mips/hurricane/ChangeLog:1.51
--- rtems/c/src/lib/libbsp/mips/hurricane/ChangeLog:1.50        Thu May 13 13:08:11 2010
+++ rtems/c/src/lib/libbsp/mips/hurricane/ChangeLog     Thu May 13 14:22:42 2010
</font><font color='#997700'>@@ -1,5 +1,11 @@
</font> 2010-05-13        Joel Sherrill <joel.sherrill@oarcorp.com>
 
<font color='#000088'>+   * Makefile.am, configure.ac: rbtx4925, rbtx4938, and hurricane had very
+       similar versions of exception. Now all use shared/irq/exception.S
+       * startup/exception.S: Removed.
+
+2010-05-13     Joel Sherrill <joel.sherrill@oarcorp.com>
+
</font>   * startup/exception.S: Minor changes to make more similar to the shared
        version.
 

<font color='#006600'>diff -u rtems/c/src/lib/libbsp/mips/hurricane/Makefile.am:1.15 rtems/c/src/lib/libbsp/mips/hurricane/Makefile.am:1.16
--- rtems/c/src/lib/libbsp/mips/hurricane/Makefile.am:1.15      Thu Oct  2 16:38:26 2008
+++ rtems/c/src/lib/libbsp/mips/hurricane/Makefile.am   Thu May 13 14:22:42 2010
</font><font color='#997700'>@@ -36,8 +36,8 @@
</font>     ../../shared/bsppredriverhook.c startup/bspstart.c \
     ../../shared/bootcard.c ../../shared/sbrk.c \
     ../../shared/gnatinstallhandler.c ../../shared/setvec.c \
<font color='#880000'>-    startup/inittlb.c \
-    startup/idtmem.S startup/idttlb.S startup/exception.S
</font><font color='#000088'>+    startup/inittlb.c startup/idtmem.S startup/idttlb.S \
+    ../shared/startup/exception.S startup/usc.S
</font> # clock
 libbsp_a_SOURCES += clock/ckinit.c
 # console

<font color='#006600'>diff -u rtems/c/src/lib/libbsp/mips/hurricane/configure.ac:1.9 rtems/c/src/lib/libbsp/mips/hurricane/configure.ac:1.10
--- rtems/c/src/lib/libbsp/mips/hurricane/configure.ac:1.9      Sat Nov 28 00:28:40 2009
+++ rtems/c/src/lib/libbsp/mips/hurricane/configure.ac  Thu May 13 14:22:42 2010
</font><font color='#997700'>@@ -16,6 +16,14 @@
</font> RTEMS_CANONICALIZE_TOOLS
 RTEMS_PROG_CCAS
 
<font color='#000088'>+RTEMS_BSPOPTS_SET([BSP_HAS_USC320],[*],[1])
+RTEMS_BSPOPTS_HELP([BSP_HAS_USC320],
+[This BSP has a V3 USC320 system controller chip.])
+
+RTEMS_BSPOPTS_SET([BSP_HAS_RM52xx],[*],[1])
+RTEMS_BSPOPTS_HELP([BSP_HAS_RM52xx],
+[This BSP has a RM52xx compatible CPU.])
+
</font> RTEMS_BSP_CLEANUP_OPTIONS(0, 0)
 
 # Explicitly list all Makefiles here
</pre>
<p> </p>
<a name='cs2'></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>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-05-13 Joel Sherrill <joel.sherrill@oarcorp.com>

        * configure.ac: rbtx4925, rbtx4938, and hurricane had very similar
        versions of exception. Now all use shared/irq/exception.S
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/mips/rbtx4925/ChangeLog.diff?r1=text&tr1=1.46&r2=text&tr2=1.47&diff_format=h">M</a></td><td width='1%'>1.47</td><td width='100%'>c/src/lib/libbsp/mips/rbtx4925/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/mips/rbtx4925/configure.ac.diff?r1=text&tr1=1.9&r2=text&tr2=1.10&diff_format=h">M</a></td><td width='1%'>1.10</td><td width='100%'>c/src/lib/libbsp/mips/rbtx4925/configure.ac</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/mips/rbtx4925/ChangeLog:1.46 rtems/c/src/lib/libbsp/mips/rbtx4925/ChangeLog:1.47
--- rtems/c/src/lib/libbsp/mips/rbtx4925/ChangeLog:1.46 Thu May 13 13:08:33 2010
+++ rtems/c/src/lib/libbsp/mips/rbtx4925/ChangeLog      Thu May 13 14:22:44 2010
</font><font color='#997700'>@@ -1,5 +1,10 @@
</font> 2010-05-13        Joel Sherrill <joel.sherrill@oarcorp.com>
 
<font color='#000088'>+   * configure.ac: rbtx4925, rbtx4938, and hurricane had very similar
+       versions of exception. Now all use shared/irq/exception.S
+
+2010-05-13     Joel Sherrill <joel.sherrill@oarcorp.com>
+
</font>   * Makefile.am: rbtx4925 and rbtx4938 had copies of the same file with
        only minor differences. Both now use shared/irq/exception.S
        * startup/exception.S: Removed.

<font color='#006600'>diff -u rtems/c/src/lib/libbsp/mips/rbtx4925/configure.ac:1.9 rtems/c/src/lib/libbsp/mips/rbtx4925/configure.ac:1.10
--- rtems/c/src/lib/libbsp/mips/rbtx4925/configure.ac:1.9       Sat Nov 28 00:28:40 2009
+++ rtems/c/src/lib/libbsp/mips/rbtx4925/configure.ac   Thu May 13 14:22:44 2010
</font><font color='#997700'>@@ -16,6 +16,10 @@
</font> RTEMS_CANONICALIZE_TOOLS
 RTEMS_PROG_CCAS
 
<font color='#000088'>+RTEMS_BSPOPTS_SET([BSP_HAS_TX49xx],[*],[1])
+RTEMS_BSPOPTS_HELP([BSP_HAS_TX49xx],
+[This BSP has a RM52xx compatible CPU.])
+
</font> RTEMS_BSP_CLEANUP_OPTIONS(0, 0)
 
 # Explicitly list all Makefiles here
</pre>
<p> </p>
<a name='cs3'></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>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-05-13 Joel Sherrill <joel.sherrill@oarcorp.com>

        * shared/irq/exception.S: rbtx4925, rbtx4938, and hurricane had very
        similar versions of exception. Now all use shared/irq/exception.S
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/mips/ChangeLog.diff?r1=text&tr1=1.35&r2=text&tr2=1.36&diff_format=h">M</a></td><td width='1%'>1.36</td><td width='100%'>c/src/lib/libbsp/mips/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/mips/shared/irq/exception.S.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>c/src/lib/libbsp/mips/shared/irq/exception.S</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/mips/ChangeLog:1.35 rtems/c/src/lib/libbsp/mips/ChangeLog:1.36
--- rtems/c/src/lib/libbsp/mips/ChangeLog:1.35  Thu May 13 13:08:38 2010
+++ rtems/c/src/lib/libbsp/mips/ChangeLog       Thu May 13 14:22:46 2010
</font><font color='#997700'>@@ -1,5 +1,10 @@
</font> 2010-05-13        Joel Sherrill <joel.sherrill@oarcorp.com>
 
<font color='#000088'>+   * shared/irq/exception.S: rbtx4925, rbtx4938, and hurricane had very
+       similar versions of exception. Now all use shared/irq/exception.S
+
+2010-05-13     Joel Sherrill <joel.sherrill@oarcorp.com>
+
</font>   * shared/irq/exception.S: New file.
 
 2010-04-28     Joel Sherrill <joel.sherrilL@OARcorp.com>

<font color='#006600'>diff -u rtems/c/src/lib/libbsp/mips/shared/irq/exception.S:1.1 rtems/c/src/lib/libbsp/mips/shared/irq/exception.S:1.2
--- rtems/c/src/lib/libbsp/mips/shared/irq/exception.S:1.1      Thu May 13 13:08:38 2010
+++ rtems/c/src/lib/libbsp/mips/shared/irq/exception.S  Thu May 13 14:22:46 2010
</font><font color='#997700'>@@ -23,7 +23,7 @@
</font>  *
  *  Derived from c/src/exec/score/cpu/no_cpu/cpu_asm.s:
  *
<font color='#880000'>- *  COPYRIGHT (c) 1989-1999.
</font><font color='#000088'>+ *  COPYRIGHT (c) 1989-2010.
</font>  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
<font color='#997700'>@@ -32,20 +32,14 @@
</font>  *
  *  $Id$
  */
<font color='#880000'>-/* @(#)exception.S       7/27/04     1.00 */
</font> 
<font color='#000088'>+#include <bspopts.h>
+#include <rtems/asm.h>
</font> #include <rtems/mips/iregdef.h>
 #include <rtems/mips/idtcpu.h>
<font color='#880000'>-
-
-#define FRAME(name,frm_reg,offset,ret_reg)      \
-        .globl  name;                           \
-        .ent    name;                           \
-name:;                                          \
-        .frame  frm_reg,offset,ret_reg
-#define ENDFRAME(name)                          \
-        .end name
-
</font><font color='#000088'>+#if BSP_HAS_USC320
+  #include <usc.h>
+#endif
</font> 
 #if __mips == 3
 /* 64 bit register operations */
<font color='#997700'>@@ -148,7 +142,6 @@
</font>   ori     k0,k0,0xf500
        sw      k1,(k0)
 #endif
<font color='#880000'>-
</font>   mfc0 k0,C0_CAUSE        /* Determine if an interrupt generated this exception */
        nop
        and k1,k0,CAUSE_EXCMASK
<font color='#997700'>@@ -163,8 +156,13 @@
</font>   mfc0 k1,C0_SR
        nop
        and k0,k1
<font color='#000088'>+#if HAS_RM52xx
+       and k0,CAUSE_IPMASK
+#elif HAS_TX49xx
</font>   and k0,(SR_IBIT1 | SR_IBIT2 | SR_IBIT3)
<font color='#880000'>-   beq k0,zero,_ISR_Handler_quick_exit /* external interrupt not enabled, ignore */
</font><font color='#000088'>+#endif
+       /* external interrupt not enabled, ignore */
+       beq k0,zero,_ISR_Handler_quick_exit
</font>   nop
 
 /* For debugging interrupts, clear EXL to allow breakpoints */
<font color='#997700'>@@ -250,17 +248,20 @@
</font>         add       t1,t1,1
         sw     t1,_Thread_Dispatch_disable_level
 
<font color='#880000'>-
-       /* DEBUG - Add the following code to disable interrupts and clear EXL in status register, this will
-               allow memory exceptions to occur while servicing the current interrupt */
</font><font color='#000088'>+      /* DEBUG - Add the following code to disable interrupts and clear
+        *         EXL in status register, this will allow memory
+        *         exceptions to occur while servicing the current interrupt
+        */
</font> #if 0
<font color='#880000'>-   li t0,~CAUSE_IP2_MASK   /* Disable interrupts from internal interrupt controller */
</font><font color='#000088'>+      /* Disable interrupts from internal interrupt controller */
+       li t0,~CAUSE_IP2_MASK
</font>   mfc0 t1,C0_SR
        nop
        and t1,t0
        mtc0 t1,C0_SR
        nop
<font color='#880000'>-   li t0,~SR_EXL           /* Clear EXL in status register to allow memory exceptions to occur */
</font><font color='#000088'>+      /* Clear EXL in status register to allow memory exceptions to occur */
+       li t0,~SR_EXL
</font>   mfc0 t1,C0_SR
        nop
        and t1,t0
<font color='#997700'>@@ -284,7 +285,8 @@
</font>   or t1,t0
        mtc0 t1,C0_SR
        nop
<font color='#880000'>-   li t0,CAUSE_IP2_MASK    /* Enable interrupts from internal interrupt controller */
</font><font color='#000088'>+      /* Enable interrupts from internal interrupt controller */
+       li t0,CAUSE_IP2_MASK
</font>   mfc0 t1,C0_SR
        nop
        or t1,t0
<font color='#997700'>@@ -386,7 +388,6 @@
</font>   mtc0    t0, C0_SR
        NOP
 
<font color='#880000'>-
</font>   /*
    *  prepare to get out of interrupt
    *  return from interrupt  (maybe to _ISR_Dispatch)
<font color='#997700'>@@ -437,6 +438,39 @@
</font>   nop
 
 
<font color='#000088'>+#if BSP_HAS_USC320
+       /* Interrupts from USC320 are serviced here */
+       .global USC_isr
+       .extern Clock_isr
+USC_isr:
+       /* check if it's a USC320 heartbeat interrupt */
+        la      k0,INT_STAT    /* read INT_STAT register */
+        lw      k0,(k0)
+        nop                    /* reading from external device */
+        sll     k0,(31-21)     /* test bit 21 (HBI) */
+
+        bgez   k0,USC_isr2     /* branch if not a heartbeat interrupt */
+       NOP
+
+       /* clear the heartbeat interrupt */
+       la      k0,INT_STAT
+       li      t0,HBI_MASK
+       sw      t0,(k0)
+       /* wait for interrupt to clear */
+USC_isr1:
+       la      k0,INT_STAT     /* read INT_STAT register */
+       lw      k0,(k0)
+       nop                     /* reading from external device */
+        sll     k0,(31-21)     /* test bit 21 (HBI) */
+        bltz    k0,USC_isr1<span style="background-color: #FF0000">   </span>    /* branch if bit set */
+        nop
+       j       Clock_isr       /* Jump to clock isr */
+       nop
+USC_isr2:
+       j       ra              /* no serviceable interrupt, return without doing anything */
+       nop
+#endif
+
</font> #if 0
        .global int7_isr
        .extern Interrupt_7_isr
<font color='#997700'>@@ -467,7 +501,7 @@
</font> FRAME(_BRK_Handler,sp,0,ra)
        .set noreorder
 
<font color='#880000'>-#ifdef USC
</font><font color='#000088'>+#if BSP_HAS_USC320
</font>   la      k0,INT_CFG3     /* Disable heartbeat interrupt in USC320, it interferes with PMON exception handler */
        lw      k1,(k0)
        li      k0,~HBI_MASK
</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>