<!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-08-23)</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>sh</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-08-23 Sebastian Huber <sebastian.huber@embedded-brains.de>

        * console/hsu.c: Fixed warnings.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/arm/lpc32xx/ChangeLog.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/arm/lpc32xx/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/arm/lpc32xx/console/hsu.c.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/arm/lpc32xx/console/hsu.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/arm/lpc32xx/ChangeLog:1.15 rtems/c/src/lib/libbsp/arm/lpc32xx/ChangeLog:1.16
--- rtems/c/src/lib/libbsp/arm/lpc32xx/ChangeLog:1.15   Wed Jun 23 03:27:56 2010
+++ rtems/c/src/lib/libbsp/arm/lpc32xx/ChangeLog        Mon Aug 23 02:25:47 2010
</font><font color='#997700'>@@ -1,3 +1,7 @@
</font><font color='#000088'>+2010-08-23    Sebastian Huber <sebastian.huber@embedded-brains.de>
+
+       * console/hsu.c: Fixed warnings.
+
</font> 2010-06-23        Sebastian Huber <sebastian.huber@embedded-brains.de>
 
        * make/custom/lpc32xx_mzx_boot_int.cfg,

<font color='#006600'>diff -u rtems/c/src/lib/libbsp/arm/lpc32xx/console/hsu.c:1.1 rtems/c/src/lib/libbsp/arm/lpc32xx/console/hsu.c:1.2
--- rtems/c/src/lib/libbsp/arm/lpc32xx/console/hsu.c:1.1        Fri Apr  9 07:25:21 2010
+++ rtems/c/src/lib/libbsp/arm/lpc32xx/console/hsu.c    Mon Aug 23 02:25:47 2010
</font><font color='#997700'>@@ -75,15 +75,15 @@
</font>   return 0;
 }
 
<font color='#880000'>-static int lpc32xx_hsu_write(int minor, const char *buf, int len)
</font><font color='#000088'>+static ssize_t lpc32xx_hsu_write(int minor, const char *buf, size_t len)
</font> {
   console_tbl *ct = &Console_Port_Tbl [minor];
   console_data *cd = &Console_Port_Data [minor];
   volatile lpc32xx_hsu *hsu = (volatile lpc32xx_hsu *) ct->ulCtrlPort1;
<font color='#880000'>-  int tx_level = (hsu->level & HSU_LEVEL_TX_MASK) >> HSU_LEVEL_TX_SHIFT;
-  int tx_free = HSU_FIFO_SIZE - tx_level;
-  int i = 0;
-  int out = len > tx_free ? tx_free : len;
</font><font color='#000088'>+  size_t tx_level = (hsu->level & HSU_LEVEL_TX_MASK) >> HSU_LEVEL_TX_SHIFT;
+  size_t tx_free = HSU_FIFO_SIZE - tx_level;
+  size_t i = 0;
+  size_t out = len > tx_free ? tx_free : len;
</font> 
   for (i = 0; i < out; ++i) {
     hsu->fifo = buf [i];
</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>sh</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-08-23 Sebastian Huber <sebastian.huber@embedded-brains.de>

        * test/tests.c: Removed file.
        * startup/bspstart.c: Fixed warnings.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/ChangeLog.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%'>c/src/lib/libbsp/powerpc/mpc55xxevb/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am.diff?r1=text&tr1=1.21&r2=text&tr2=1.22&diff_format=h">M</a></td><td width='1%'>1.22</td><td width='100%'>c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/bspstart.c.diff?r1=text&tr1=1.13&r2=text&tr2=1.14&diff_format=h">M</a></td><td width='1%'>1.14</td><td width='100%'>c/src/lib/libbsp/powerpc/mpc55xxevb/startup/bspstart.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/tests/tests.c?rev=1.11&content-type=text/vnd.viewcvs-markup">R</a></td><td width='1%'><font color="#880000">1.11</font></td><td width='100%'><font color="#880000">c/src/lib/libbsp/powerpc/mpc55xxevb/tests/tests.c</font></td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/ChangeLog:1.55 rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/ChangeLog:1.56
--- rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/ChangeLog:1.55    Tue Jun 29 13:52:56 2010
+++ rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/ChangeLog Mon Aug 23 02:38:50 2010
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2010-08-23    Sebastian Huber <sebastian.huber@embedded-brains.de>
+
+       * test/tests.c: Removed file.
+       * startup/bspstart.c: Fixed warnings.
+
</font> 2010-06-29        Joel Sherrill <joel.sherrill@oarcorp.com>
 
        * configure.ac: Remove AC_CHECK_SIZEOF([void *]).

<font color='#006600'>diff -u rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am:1.21 rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am:1.22
--- rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am:1.21  Fri Apr 30 06:59:05 2010
+++ rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am       Mon Aug 23 02:38:50 2010
</font><font color='#997700'>@@ -57,8 +57,8 @@
</font>     ../../shared/src/irq-info.c \
     ../../shared/src/irq-shell.c
 
<font color='#880000'>-# tests
-libbsp_a_SOURCES += tests/tests.c startup/sd-card-init.c
</font><font color='#000088'>+# Misc
+libbsp_a_SOURCES += startup/sd-card-init.c
</font> 
 # bsp_i2c
 libbsp_a_SOURCES += i2c/i2c_init.c

<font color='#006600'>diff -u rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/bspstart.c:1.13 rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/bspstart.c:1.14
--- rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/bspstart.c:1.13   Wed Apr  7 09:19:55 2010
+++ rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/bspstart.c        Mon Aug 23 02:38:50 2010
</font><font color='#997700'>@@ -393,7 +393,7 @@
</font>   memset(bsp_section_sbss_start,0,
               bsp_section_sbss_end-bsp_section_sbss_start);
 
<font color='#880000'>-   ppc_exc_vector_base = bsp_section_vector_start;
</font><font color='#000088'>+      ppc_exc_vector_base = (uint32_t) bsp_section_vector_start;
</font> 
        RTEMS_DEBUG_PRINT( "BSP start ...\n");
 
</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>sh</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-08-23 Sebastian Huber <sebastian.huber@embedded-brains.de>

        PR 1671/cpukit
        * libcsupport/include/rtems/gxx_wrappers.h: New file.
        * libcsupport/Makefile.am, libcsupport/preinstall.am: Reflect change
        above.
        * libcsupport/src/gxx_wrappers.c: Include <rtems/gxx_wrappers.h>.  Use
        _Internal_error_Occurred() instead of rtems_panic().
        * score/include/rtems/score/interr.h: Added
        INTERNAL_ERROR_GXX_KEY_ADD_FAILED and
        INTERNAL_ERROR_GXX_MUTEX_INIT_FAILED.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2577&r2=text&tr2=1.2578&diff_format=h">M</a></td><td width='1%'>1.2578</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/Makefile.am.diff?r1=text&tr1=1.131&r2=text&tr2=1.132&diff_format=h">M</a></td><td width='1%'>1.132</td><td width='100%'>cpukit/libcsupport/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/include/rtems/gxx_wrappers.h?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">cpukit/libcsupport/include/rtems/gxx_wrappers.h</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/preinstall.am.diff?r1=text&tr1=1.17&r2=text&tr2=1.18&diff_format=h">M</a></td><td width='1%'>1.18</td><td width='100%'>cpukit/libcsupport/preinstall.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/src/gxx_wrappers.c.diff?r1=text&tr1=1.21&r2=text&tr2=1.22&diff_format=h">M</a></td><td width='1%'>1.22</td><td width='100%'>cpukit/libcsupport/src/gxx_wrappers.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/include/rtems/score/interr.h.diff?r1=text&tr1=1.32&r2=text&tr2=1.33&diff_format=h">M</a></td><td width='1%'>1.33</td><td width='100%'>cpukit/score/include/rtems/score/interr.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2577 rtems/cpukit/ChangeLog:1.2578
--- rtems/cpukit/ChangeLog:1.2577       Fri Aug 20 16:24:44 2010
+++ rtems/cpukit/ChangeLog      Mon Aug 23 02:59:38 2010
</font><font color='#997700'>@@ -1,3 +1,15 @@
</font><font color='#000088'>+2010-08-23    Sebastian Huber <sebastian.huber@embedded-brains.de>
+
+       PR 1671/cpukit
+       * libcsupport/include/rtems/gxx_wrappers.h: New file.
+       * libcsupport/Makefile.am, libcsupport/preinstall.am: Reflect change
+       above.
+       * libcsupport/src/gxx_wrappers.c: Include <rtems/gxx_wrappers.h>.  Use
+       _Internal_error_Occurred() instead of rtems_panic().
+       * score/include/rtems/score/interr.h: Added
+       INTERNAL_ERROR_GXX_KEY_ADD_FAILED and
+       INTERNAL_ERROR_GXX_MUTEX_INIT_FAILED.
+
</font> 2010-08-20        <yann.sionneau@telecom-sudparis.eu>
 
        * libmisc/fb/fb.h: Add constants for buffer modes.

<font color='#006600'>diff -u rtems/cpukit/libcsupport/Makefile.am:1.131 rtems/cpukit/libcsupport/Makefile.am:1.132
--- rtems/cpukit/libcsupport/Makefile.am:1.131  Tue Aug 10 08:15:30 2010
+++ rtems/cpukit/libcsupport/Makefile.am        Mon Aug 23 02:59:38 2010
</font><font color='#997700'>@@ -23,7 +23,8 @@
</font> ## rtems
 include_rtems_HEADERS += include/rtems/assoc.h include/rtems/error.h \
     include/rtems/libcsupport.h include/rtems/libio.h include/rtems/libio_.h \
<font color='#880000'>-    include/rtems/malloc.h include/rtems/termiostypes.h
</font><font color='#000088'>+    include/rtems/malloc.h include/rtems/termiostypes.h \
+    include/rtems/gxx_wrappers.h
</font> 
 ## zilog
 

<font color='#006600'>diff -u /dev/null rtems/cpukit/libcsupport/include/rtems/gxx_wrappers.h:1.1
--- /dev/null   Mon Aug 23 03:10:17 2010
+++ rtems/cpukit/libcsupport/include/rtems/gxx_wrappers.h       Mon Aug 23 02:59:38 2010
</font><font color='#997700'>@@ -0,0 +1,78 @@
</font><font color='#000088'>+/*
+ *  RTEMS threads compatibility routines for libgcc2.
+ *
+ *  by: Rosimildo da Silva (rdasilva@connecttel.com)
+ *
+ *  Used ideas from:
+ *    W. Eric Norum
+ *    Canadian Light Source
+ *    University of Saskatchewan
+ *    Saskatoon, Saskatchewan, CANADA
+ *    eric@cls.usask.ca
+ *
+ *  Eric sent some e-mail in the rtems-list as a start point for this
+ *  module implementation.
+ *
+ *  $Id$
+ */
+
+#ifndef __GCC_WRAPPERS_h<span style="background-color: #FF0000"> </span>
+#define __GCC_WRAPPERS_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+/*
+ * These typedefs should match with the ones defined in the file
+ * gcc/gthr-rtems.h in the gcc distribution.
+ * FIXME: T.S, 2007/01/31: -> gcc/gthr-rtems.h still declares
+ *                            void * __gthread_key_t;
+ */
+typedef struct __gthread_key_ {
+       void *val;<span style="background-color: #FF0000"> </span>                   /* this is switched with the task      */
+       void (*dtor)(void*);   /* this remains in place for all tasks */
+} __gthread_key, *__gthread_key_t;
+
+typedef int   __gthread_once_t;
+typedef void *__gthread_mutex_t;
+typedef void *__gthread_recursive_mutex_t;
+
+int rtems_gxx_once(__gthread_once_t *once, void (*func) (void));
+
+int rtems_gxx_key_create (__gthread_key_t *key, void (*dtor) (void *));
+
+int rtems_gxx_key_dtor (__gthread_key_t key, void *ptr);
+
+int rtems_gxx_key_delete (__gthread_key_t key);
+
+void *rtems_gxx_getspecific(__gthread_key_t key);
+
+int rtems_gxx_setspecific(__gthread_key_t key, const void *ptr);
+
+/*
+ * MUTEX support
+ */
+void rtems_gxx_mutex_init (__gthread_mutex_t *mutex);
+
+int rtems_gxx_mutex_lock (__gthread_mutex_t *mutex);
+
+int rtems_gxx_mutex_destroy (__gthread_mutex_t *mutex);
+
+int rtems_gxx_mutex_trylock (__gthread_mutex_t *mutex);
+
+int rtems_gxx_mutex_unlock (__gthread_mutex_t *mutex);
+
+void rtems_gxx_recursive_mutex_init(__gthread_recursive_mutex_t *mutex);
+
+int rtems_gxx_recursive_mutex_lock(__gthread_recursive_mutex_t *mutex);
+
+int rtems_gxx_recursive_mutex_trylock(__gthread_recursive_mutex_t *mutex);
+
+int rtems_gxx_recursive_mutex_unlock(__gthread_recursive_mutex_t *mutex);
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __GCC_WRAPPERS_h */
</font>
<font color='#006600'>diff -u rtems/cpukit/libcsupport/preinstall.am:1.17 rtems/cpukit/libcsupport/preinstall.am:1.18
--- rtems/cpukit/libcsupport/preinstall.am:1.17 Wed Aug 12 09:20:20 2009
+++ rtems/cpukit/libcsupport/preinstall.am      Mon Aug 23 02:59:38 2010
</font><font color='#997700'>@@ -95,6 +95,10 @@
</font>   $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/termiostypes.h
 PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/termiostypes.h
 
<font color='#000088'>+$(PROJECT_INCLUDE)/rtems/gxx_wrappers.h: include/rtems/gxx_wrappers.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
+       $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/gxx_wrappers.h
+PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/gxx_wrappers.h
+
</font> $(PROJECT_INCLUDE)/rtems/zilog/$(dirstamp):
        @$(MKDIR_P) $(PROJECT_INCLUDE)/rtems/zilog
        @: > $(PROJECT_INCLUDE)/rtems/zilog/$(dirstamp)

<font color='#006600'>diff -u rtems/cpukit/libcsupport/src/gxx_wrappers.c:1.21 rtems/cpukit/libcsupport/src/gxx_wrappers.c:1.22
--- rtems/cpukit/libcsupport/src/gxx_wrappers.c:1.21    Sun Jul 25 09:52:27 2010
+++ rtems/cpukit/libcsupport/src/gxx_wrappers.c Mon Aug 23 02:59:38 2010
</font><font color='#997700'>@@ -25,32 +25,15 @@
</font> #include "config.h"
 #endif
 
<font color='#000088'>+#include <rtems/gxx_wrappers.h>
+
</font> #include <stdlib.h>
<font color='#880000'>-#include <stdio.h>
</font> 
 #include <rtems.h>
<font color='#880000'>-#include <rtems/system.h>
-#include <rtems/error.h>
-#include <rtems/rtems/tasks.h>
</font> 
 /* uncomment this if you need to debug this interface */
 /*#define DEBUG_GXX_WRAPPERS 1*/
 
<font color='#880000'>-/*
- * These typedefs should match with the ones defined in the file
- * gcc/gthr-rtems.h in the gcc distribution.
- * FIXME: T.S, 2007/01/31: -> gcc/gthr-rtems.h still declares
- *                            void * __gthread_key_t;
- */
-typedef struct __gthread_key_ {
-  void *val;             /* this is switched with the task      */
-  void (*dtor)(void*);   /* this remains in place for all tasks */
-} __gthread_key, *__gthread_key_t;
-
-typedef int   __gthread_once_t;
-typedef void *__gthread_mutex_t;
-typedef void *__gthread_recursive_mutex_t;
-
</font> int rtems_gxx_once(__gthread_once_t *once, void (*func) (void))
 {
   #ifdef DEBUG_GXX_WRAPPERS
<font color='#997700'>@@ -145,7 +128,11 @@
</font>      */
     status = rtems_task_variable_add( RTEMS_SELF, (void **)key, key->dtor );
     if ( status != RTEMS_SUCCESSFUL ) {
<font color='#880000'>-       rtems_panic ("rtems_gxx_getspecific");
</font><font color='#000088'>+      _Internal_error_Occurred(
+        INTERNAL_ERROR_CORE,
+        true,
+        INTERNAL_ERROR_GXX_KEY_ADD_FAILED
+      );
</font>     }
     key->val = (void *)0;
   }
<font color='#997700'>@@ -212,7 +199,11 @@
</font>         status
       );
     #endif
<font color='#880000'>-    rtems_panic ("rtems_gxx_mutex_init");
</font><font color='#000088'>+    _Internal_error_Occurred(
+      INTERNAL_ERROR_CORE,
+      true,
+      INTERNAL_ERROR_GXX_MUTEX_INIT_FAILED
+    );
</font>   }
   #ifdef DEBUG_GXX_WRAPPERS
     printk( "gxx_wrappers: mutex init complete =%X\n", *mutex );

<font color='#006600'>diff -u rtems/cpukit/score/include/rtems/score/interr.h:1.32 rtems/cpukit/score/include/rtems/score/interr.h:1.33
--- rtems/cpukit/score/include/rtems/score/interr.h:1.32        Tue Aug 10 17:56:35 2010
+++ rtems/cpukit/score/include/rtems/score/interr.h     Mon Aug 23 02:59:38 2010
</font><font color='#997700'>@@ -70,7 +70,9 @@
</font>   INTERNAL_ERROR_IMPLEMENTATION_BLOCKING_OPERATION_CANCEL,
   INTERNAL_ERROR_MUTEX_OBTAIN_FROM_BAD_STATE,
   INTERNAL_ERROR_UNLIMITED_AND_MAXIMUM_IS_0,
<font color='#880000'>-  INTERNAL_ERROR_SHUTDOWN_WHEN_NOT_UP
</font><font color='#000088'>+  INTERNAL_ERROR_SHUTDOWN_WHEN_NOT_UP,
+  INTERNAL_ERROR_GXX_KEY_ADD_FAILED,
+  INTERNAL_ERROR_GXX_MUTEX_INIT_FAILED
</font> } Internal_errors_Core_list;
 
 typedef uint32_t Internal_errors_t;
</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>