<!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-04-25)</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-04-25 Joel Sherrill <joel.sherrilL@OARcorp.com>

        * libchip/rtc/ds1375-rtc.h, libchip/rtc/ds1375.c,
        libchip/rtc/icm7170.c, libchip/rtc/icm7170_reg.c,
        libchip/rtc/m48t08_reg.c, libchip/rtc/rtc.h: Use uintptr_t instead of
        uint32_t.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/ChangeLog.diff?r1=text&tr1=1.508&r2=text&tr2=1.509&diff_format=h">M</a></td><td width='1%'>1.509</td><td width='100%'>c/src/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/libchip/rtc/ds1375-rtc.h.diff?r1=text&tr1=1.5&r2=text&tr2=1.6&diff_format=h">M</a></td><td width='1%'>1.6</td><td width='100%'>c/src/libchip/rtc/ds1375-rtc.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/libchip/rtc/ds1375.c.diff?r1=text&tr1=1.8&r2=text&tr2=1.9&diff_format=h">M</a></td><td width='1%'>1.9</td><td width='100%'>c/src/libchip/rtc/ds1375.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/libchip/rtc/icm7170.c.diff?r1=text&tr1=1.8&r2=text&tr2=1.9&diff_format=h">M</a></td><td width='1%'>1.9</td><td width='100%'>c/src/libchip/rtc/icm7170.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/libchip/rtc/icm7170_reg.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/libchip/rtc/icm7170_reg.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/libchip/rtc/m48t08_reg.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/libchip/rtc/m48t08_reg.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/libchip/rtc/rtc.h.diff?r1=text&tr1=1.11&r2=text&tr2=1.12&diff_format=h">M</a></td><td width='1%'>1.12</td><td width='100%'>c/src/libchip/rtc/rtc.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/ChangeLog:1.508 rtems/c/src/ChangeLog:1.509
--- rtems/c/src/ChangeLog:1.508 Fri Apr  9 21:35:59 2010
+++ rtems/c/src/ChangeLog       Sun Apr 25 16:18:05 2010
</font><font color='#997700'>@@ -1,3 +1,10 @@
</font><font color='#000088'>+2010-04-25    Joel Sherrill <joel.sherrilL@OARcorp.com>
+
+       * libchip/rtc/ds1375-rtc.h, libchip/rtc/ds1375.c,
+       libchip/rtc/icm7170.c, libchip/rtc/icm7170_reg.c,
+       libchip/rtc/m48t08_reg.c, libchip/rtc/rtc.h: Use uintptr_t instead of
+       uint32_t.
+
</font> 2010-04-10        Ralf Corsépius <ralf.corsepius@rtems.org>
 
        * libchip/serial/serial.h: Add extern "C".

<font color='#006600'>diff -u rtems/c/src/libchip/rtc/ds1375-rtc.h:1.5 rtems/c/src/libchip/rtc/ds1375-rtc.h:1.6
--- rtems/c/src/libchip/rtc/ds1375-rtc.h:1.5    Sun Nov 29 21:42:53 2009
+++ rtems/c/src/libchip/rtc/ds1375-rtc.h        Sun Apr 25 16:18:05 2010
</font><font color='#997700'>@@ -64,10 +64,10 @@
</font> rtc_ds1375_device_probe( int minor );
 
 uint32_t
<font color='#880000'>-rtc_ds1375_get_register( uint32_t port, uint8_t reg );
</font><font color='#000088'>+rtc_ds1375_get_register( uintptr_t port, uint8_t reg );
</font> 
 void
<font color='#880000'>-rtc_ds1375_set_register( uint32_t port, uint8_t reg, uint32_t value );
</font><font color='#000088'>+rtc_ds1375_set_register( uintptr_t port, uint8_t reg, uint32_t value );
</font> 
 /*
  * BSP must supply string constant argument 'i2cname' which matches
<font color='#997700'>@@ -84,11 +84,11 @@
</font> #define DS1375_RTC_TBL_ENTRY(i2cname) \
 {<span style="background-color: #FF0000">                                              </span>         \
        sDeviceName:    "/dev/rtc",                       \
<font color='#880000'>-   deviceType:             RTC_CUSTOM,                       \
-       pDeviceFns:             &rtc_ds1375_fns,                  \
</font><font color='#000088'>+      deviceType:     RTC_CUSTOM,                       \
+       pDeviceFns:     &rtc_ds1375_fns,                  \
</font>   deviceProbe:    rtc_ds1375_device_probe,          \
<font color='#880000'>-   ulCtrlPort1:    (uint32_t)(i2cname),              \
-       ulDataPort:             0,                                \
</font><font color='#000088'>+      ulCtrlPort1:    (uintptr_t)(i2cname),             \
+       ulDataPort:     0,                                \
</font>   getRegister:    rtc_ds1375_get_register,          \
        setRegister:    rtc_ds1375_set_register,          \
 }

<font color='#006600'>diff -u rtems/c/src/libchip/rtc/ds1375.c:1.8 rtems/c/src/libchip/rtc/ds1375.c:1.9
--- rtems/c/src/libchip/rtc/ds1375.c:1.8        Fri Apr  2 01:46:48 2010
+++ rtems/c/src/libchip/rtc/ds1375.c    Sun Apr 25 16:18:06 2010
</font><font color='#997700'>@@ -397,7 +397,7 @@
</font> 
 
 uint32_t
<font color='#880000'>-rtc_ds1375_get_register( uint32_t port, uint8_t reg )
</font><font color='#000088'>+rtc_ds1375_get_register( uintptr_t port, uint8_t reg )
</font> {
 int      fd;
 uint8_t  v;
<font color='#997700'>@@ -415,7 +415,7 @@
</font> }
 
 void
<font color='#880000'>-rtc_ds1375_set_register( uint32_t port, uint8_t reg, uint32_t value )
</font><font color='#000088'>+rtc_ds1375_set_register( uintptr_t port, uint8_t reg, uint32_t value )
</font> {
 int     fd;
 uint8_t v = value;
<font color='#997700'>@@ -454,7 +454,7 @@
</font> }
 
 rtc_fns rtc_ds1375_fns = {
<font color='#880000'>-  deviceInitialize:  ds1375_initialize,
</font><font color='#000088'>+  deviceInitialize: ds1375_initialize,
</font>   deviceGetTime:    ds1375_get_time,
   deviceSetTime:    ds1375_set_time,
 };

<font color='#006600'>diff -u rtems/c/src/libchip/rtc/icm7170.c:1.8 rtems/c/src/libchip/rtc/icm7170.c:1.9
--- rtems/c/src/libchip/rtc/icm7170.c:1.8       Mon Sep 22 06:45:25 2008
+++ rtems/c/src/libchip/rtc/icm7170.c   Sun Apr 25 16:18:06 2010
</font><font color='#997700'>@@ -41,9 +41,9 @@
</font>   int minor
 )
 {
<font color='#880000'>-  uint32_t       icm7170;
</font><font color='#000088'>+  uintptr_t      icm7170;
</font>   setRegister_f  setReg;
<font color='#880000'>-  uint32_t       clock;
</font><font color='#000088'>+  uintptr_t      clock;
</font> 
   icm7170 = RTC_Table[ minor ].ulCtrlPort1;
   setReg = RTC_Table[ minor ].setRegister;
<font color='#997700'>@@ -52,7 +52,7 @@
</font>    *  Initialize the RTC with the proper clock frequency
    */
 
<font color='#880000'>-  clock = (uint32_t) RTC_Table[ minor ].pDeviceParams;
</font><font color='#000088'>+  clock = (uintptr_t) RTC_Table[ minor ].pDeviceParams;
</font>   (*setReg)( icm7170, ICM7170_CONTROL, 0x0c | clock );
 }
 
<font color='#997700'>@@ -118,16 +118,16 @@
</font>   const rtems_time_of_day *time
 )
 {
<font color='#880000'>-  uint32_t       icm7170;
</font><font color='#000088'>+  uintptr_t      icm7170;
</font>   getRegister_f  getReg;
   setRegister_f  setReg;
   uint32_t       year;
<font color='#880000'>-  uint32_t       clock;
</font><font color='#000088'>+  uintptr_t      clock;
</font> 
   icm7170 = RTC_Table[ minor ].ulCtrlPort1;
   getReg = RTC_Table[ minor ].getRegister;
   setReg = RTC_Table[ minor ].setRegister;
<font color='#880000'>-  clock = (uint32_t) RTC_Table[ minor ].pDeviceParams;
</font><font color='#000088'>+  clock = (uintptr_t) RTC_Table[ minor ].pDeviceParams;
</font> 
   year = time->year;
 

<font color='#006600'>diff -u rtems/c/src/libchip/rtc/icm7170_reg.c:1.6 rtems/c/src/libchip/rtc/icm7170_reg.c:1.7
--- rtems/c/src/libchip/rtc/icm7170_reg.c:1.6   Tue Apr 20 05:43:39 2004
+++ rtems/c/src/libchip/rtc/icm7170_reg.c       Sun Apr 25 16:18:06 2010
</font><font color='#997700'>@@ -31,7 +31,7 @@
</font>  */
 
 uint32_t   _ICM7170_NAME(icm7170_get_register)(
<font color='#880000'>-  uint32_t    ulCtrlPort,
</font><font color='#000088'>+  uintptr_t   ulCtrlPort,
</font>   uint8_t     ucRegNum
 )
 {
<font color='#997700'>@@ -47,7 +47,7 @@
</font>  */
 
 void  _ICM7170_NAME(icm7170_set_register)(
<font color='#880000'>-  uint32_t    ulCtrlPort,
</font><font color='#000088'>+  uintptr_t   ulCtrlPort,
</font>   uint8_t     ucRegNum,
   uint32_t    ucData
 )

<font color='#006600'>diff -u rtems/c/src/libchip/rtc/m48t08_reg.c:1.6 rtems/c/src/libchip/rtc/m48t08_reg.c:1.7
--- rtems/c/src/libchip/rtc/m48t08_reg.c:1.6    Tue Apr 20 05:43:39 2004
+++ rtems/c/src/libchip/rtc/m48t08_reg.c        Sun Apr 25 16:18:06 2010
</font><font color='#997700'>@@ -31,7 +31,7 @@
</font>  */
 
 uint32_t   _M48T08_NAME(m48t08_get_register)(
<font color='#880000'>-  uint32_t    ulCtrlPort,
</font><font color='#000088'>+  uintptr_t   ulCtrlPort,
</font>   uint8_t     ucRegNum
 )
 {
<font color='#997700'>@@ -47,7 +47,7 @@
</font>  */
 
 void  _M48T08_NAME(m48t08_set_register)(
<font color='#880000'>-  uint32_t    ulCtrlPort,
</font><font color='#000088'>+  uintptr_t   ulCtrlPort,
</font>   uint8_t     ucRegNum,
   uint32_t    ucData
 )

<font color='#006600'>diff -u rtems/c/src/libchip/rtc/rtc.h:1.11 rtems/c/src/libchip/rtc/rtc.h:1.12
--- rtems/c/src/libchip/rtc/rtc.h:1.11  Mon Sep 22 06:45:25 2008
+++ rtems/c/src/libchip/rtc/rtc.h       Sun Apr 25 16:18:06 2010
</font><font color='#997700'>@@ -24,9 +24,8 @@
</font>  *  Types for get and set register routines
  */
 
<font color='#880000'>-typedef uint32_t   (*getRegister_f)(uint32_t   port, uint8_t   register);
-typedef void       (*setRegister_f)(
-                            uint32_t   port, uint8_t   reg, uint32_t   value);
</font><font color='#000088'>+typedef uint32_t (*getRegister_f)(uintptr_t  port, uint8_t reg);
+typedef void     (*setRegister_f)(uintptr_t  port, uint8_t reg, uint32_t value);
</font> 
 typedef struct _rtc_fns {
   void    (*deviceInitialize)(int minor);
<font color='#997700'>@@ -68,8 +67,8 @@
</font>   const rtc_fns *pDeviceFns;
   bool           (*deviceProbe)(int minor);
   void          *pDeviceParams;
<font color='#880000'>-  uint32_t       ulCtrlPort1;
-  uint32_t       ulDataPort;
</font><font color='#000088'>+  uintptr_t      ulCtrlPort1;
+  uintptr_t      ulDataPort;
</font>   getRegister_f  getRegister;
   setRegister_f  setRegister;
 } rtc_tbl;
</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-04-25 Joel Sherrill <joel.sherrilL@OARcorp.com>

        * cpu.c, rtems/score/cpu.h: Move _CPU_Context_Initialize() to cpu.c so
        it is easier to make warning free.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/mips/ChangeLog.diff?r1=text&tr1=1.136&r2=text&tr2=1.137&diff_format=h">M</a></td><td width='1%'>1.137</td><td width='100%'>cpukit/score/cpu/mips/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/mips/cpu.c.diff?r1=text&tr1=1.34&r2=text&tr2=1.35&diff_format=h">M</a></td><td width='1%'>1.35</td><td width='100%'>cpukit/score/cpu/mips/cpu.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/mips/rtems/score/cpu.h.diff?r1=text&tr1=1.55&r2=text&tr2=1.56&diff_format=h">M</a></td><td width='1%'>1.56</td><td width='100%'>cpukit/score/cpu/mips/rtems/score/cpu.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/score/cpu/mips/ChangeLog:1.136 rtems/cpukit/score/cpu/mips/ChangeLog:1.137
--- rtems/cpukit/score/cpu/mips/ChangeLog:1.136 Sun Apr 25 09:56:05 2010
+++ rtems/cpukit/score/cpu/mips/ChangeLog       Sun Apr 25 16:37:45 2010
</font><font color='#997700'>@@ -1,5 +1,10 @@
</font> 2010-04-25        Joel Sherrill <joel.sherrilL@OARcorp.com>
 
<font color='#000088'>+   * cpu.c, rtems/score/cpu.h: Move _CPU_Context_Initialize() to cpu.c so
+       it is easier to make warning free.
+
+2010-04-25     Joel Sherrill <joel.sherrilL@OARcorp.com>
+
</font>   * rtems/score/cpu.h: Remove warning in _CPU_Context_Initialize.
 
 2010-03-27     Joel Sherrill <joel.sherrill@oarcorp.com>

<font color='#006600'>diff -u rtems/cpukit/score/cpu/mips/cpu.c:1.34 rtems/cpukit/score/cpu/mips/cpu.c:1.35
--- rtems/cpukit/score/cpu/mips/cpu.c:1.34      Sat Mar 27 10:02:15 2010
+++ rtems/cpukit/score/cpu/mips/cpu.c   Sun Apr 25 16:37:46 2010
</font><font color='#997700'>@@ -251,6 +251,49 @@
</font> /* we don't support this yet */
 }
 
<font color='#000088'>+/*
+ *  _CPU_Context_Initialize
+ *
+ *  This kernel routine initializes the basic non-FP context area associated
+ *  with each thread.
+ *
+ *  Input parameters:
+ *    the_context  - pointer to the context area
+ *    stack_base   - address of memory for the SPARC
+ *    size         - size in bytes of the stack area
+ *    new_level    - interrupt level for this context area
+ *    entry_point  - the starting execution point for this this context
+ *    is_fp        - TRUE if this context is associated with an FP thread
+ *
+ *  Output parameters: NONE
+ */
+void _CPU_Context_Initialize(
+  Context_Control  *the_context,
+  uintptr_t        *stack_base,
+  uint32_t          size,
+  uint32_t          new_level,
+  void             *entry_point,
+  bool              is_fp
+)
+{
+  uintptr_t             stack_tmp;
+  __MIPS_REGISTER_TYPE  intlvl = new_level & 0xff;
+
+  stack_tmp  = (uintptr_t)stack_base;
+  stack_tmp += ((size) - CPU_STACK_ALIGNMENT);
+  stack_tmp &= (__MIPS_REGISTER_TYPE) ~(CPU_STACK_ALIGNMENT - 1);
+
+  the_context->sp = (__MIPS_REGISTER_TYPE) stack_tmp;
+  the_context->fp = (__MIPS_REGISTER_TYPE) stack_tmp;
+  the_context->ra = (__MIPS_REGISTER_TYPE) (uintptr_t)entry_point;
+  the_context->c0_sr =
+    ((intlvl==0)? (mips_interrupt_mask() | 0x300 | _INTON):
+      ( ((intlvl<<9) & mips_interrupt_mask()) | 0x300 |
+      ((intlvl & 1)?_INTON:0)) ) |
+      SR_CU0 | ((is_fp)?SR_CU1:0) | _EXTRABITS;
+}
+
+
</font> /*PAGE
  *
  *  _CPU_Internal_threads_Idle_thread_body

<font color='#006600'>diff -u rtems/cpukit/score/cpu/mips/rtems/score/cpu.h:1.55 rtems/cpukit/score/cpu/mips/rtems/score/cpu.h:1.56
--- rtems/cpukit/score/cpu/mips/rtems/score/cpu.h:1.55  Sun Apr 25 09:56:05 2010
+++ rtems/cpukit/score/cpu/mips/rtems/score/cpu.h       Sun Apr 25 16:37:46 2010
</font><font color='#997700'>@@ -416,7 +416,7 @@
</font> } Context_Control;
 
 #define _CPU_Context_Get_SP( _context ) \
<font color='#880000'>-  (_context)->sp
</font><font color='#000088'>+  (uintptr_t) (_context)->sp
</font> 
 /* WARNING: If this structure is modified, the constants in cpu.h
  *          must also be updated.
<font color='#997700'>@@ -851,20 +851,15 @@
</font> #define _EXTRABITS      0  /* make sure we're in user mode on MIPS1 processors */
 #endif /* __mips == 1 */
 
<font color='#880000'>-#define _CPU_Context_Initialize( _the_context, _stack_base, _size, _isr, _entry_point, _is_fp ) \
-  { \
-<span style="background-color: #FF0000"> </span> uintptr_t  _stack_tmp = \
-           (uintptr_t)(_stack_base) + (_size) - CPU_STACK_ALIGNMENT; \
-        uintptr_t  _intlvl = _isr & 0xff; \
-<span style="background-color: #FF0000">  </span>        _stack_tmp &= ~(CPU_STACK_ALIGNMENT - 1); \
-<span style="background-color: #FF0000">  </span>        (_the_context)->sp = (__MIPS_REGISTER_TYPE) _stack_tmp; \
-<span style="background-color: #FF0000">  </span>        (_the_context)->fp = (__MIPS_REGISTER_TYPE) _stack_tmp; \
-       (_the_context)->ra = (__MIPS_REGISTER_TYPE)_entry_point; \
-       (_the_context)->c0_sr = ((_intlvl==0)?(mips_interrupt_mask() | 0x300 | _INTON): \
-               ( ((_intlvl<<9) & mips_interrupt_mask()) | 0x300 | ((_intlvl & 1)?_INTON:0)) ) | \
-                               SR_CU0 | ((_is_fp)?SR_CU1:0) | _EXTRABITS; \
-  }
</font> 
<font color='#000088'>+void _CPU_Context_Initialize(
+  Context_Control  *the_context,
+  uintptr_t        *stack_base,
+  uint32_t          size,
+  uint32_t          new_level,
+  void             *entry_point,
+  bool              is_fp
+);
</font> 
 
 /*
</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>