change log for rtems (2010-08-23)

rtems-vc at rtems.org rtems-vc at rtems.org
Mon Aug 23 08:10:18 UTC 2010


 *sh*:
2010-08-23	Sebastian Huber <sebastian.huber at embedded-brains.de>

	* console/hsu.c: Fixed warnings.

M   1.16  c/src/lib/libbsp/arm/lpc32xx/ChangeLog
M    1.2  c/src/lib/libbsp/arm/lpc32xx/console/hsu.c

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
@@ -1,3 +1,7 @@
+2010-08-23	Sebastian Huber <sebastian.huber at embedded-brains.de>
+
+	* console/hsu.c: Fixed warnings.
+
 2010-06-23	Sebastian Huber <sebastian.huber at embedded-brains.de>
 
 	* make/custom/lpc32xx_mzx_boot_int.cfg,

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
@@ -75,15 +75,15 @@
   return 0;
 }
 
-static int lpc32xx_hsu_write(int minor, const char *buf, int len)
+static ssize_t lpc32xx_hsu_write(int minor, const char *buf, size_t len)
 {
   console_tbl *ct = &Console_Port_Tbl [minor];
   console_data *cd = &Console_Port_Data [minor];
   volatile lpc32xx_hsu *hsu = (volatile lpc32xx_hsu *) ct->ulCtrlPort1;
-  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;
+  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;
 
   for (i = 0; i < out; ++i) {
     hsu->fifo = buf [i];


 *sh*:
2010-08-23	Sebastian Huber <sebastian.huber at embedded-brains.de>

	* test/tests.c: Removed file.
	* startup/bspstart.c: Fixed warnings.

M   1.56  c/src/lib/libbsp/powerpc/mpc55xxevb/ChangeLog
M   1.22  c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am
M   1.14  c/src/lib/libbsp/powerpc/mpc55xxevb/startup/bspstart.c
R   1.11  c/src/lib/libbsp/powerpc/mpc55xxevb/tests/tests.c

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
@@ -1,3 +1,8 @@
+2010-08-23	Sebastian Huber <sebastian.huber at embedded-brains.de>
+
+	* test/tests.c: Removed file.
+	* startup/bspstart.c: Fixed warnings.
+
 2010-06-29	Joel Sherrill <joel.sherrill at oarcorp.com>
 
 	* configure.ac: Remove AC_CHECK_SIZEOF([void *]).

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
@@ -57,8 +57,8 @@
     ../../shared/src/irq-info.c \
     ../../shared/src/irq-shell.c
 
-# tests
-libbsp_a_SOURCES += tests/tests.c startup/sd-card-init.c
+# Misc
+libbsp_a_SOURCES += startup/sd-card-init.c
 
 # bsp_i2c
 libbsp_a_SOURCES += i2c/i2c_init.c

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
@@ -393,7 +393,7 @@
 	memset(bsp_section_sbss_start,0,
 	       bsp_section_sbss_end-bsp_section_sbss_start);
 
-	ppc_exc_vector_base = bsp_section_vector_start;
+	ppc_exc_vector_base = (uint32_t) bsp_section_vector_start;
 
 	RTEMS_DEBUG_PRINT( "BSP start ...\n");
 


 *sh*:
2010-08-23	Sebastian Huber <sebastian.huber at 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.

M 1.2578  cpukit/ChangeLog
M  1.132  cpukit/libcsupport/Makefile.am
A    1.1  cpukit/libcsupport/include/rtems/gxx_wrappers.h
M   1.18  cpukit/libcsupport/preinstall.am
M   1.22  cpukit/libcsupport/src/gxx_wrappers.c
M   1.33  cpukit/score/include/rtems/score/interr.h

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
@@ -1,3 +1,15 @@
+2010-08-23	Sebastian Huber <sebastian.huber at 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.
+
 2010-08-20	<yann.sionneau at telecom-sudparis.eu>
 
 	* libmisc/fb/fb.h: Add constants for buffer modes.

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
@@ -23,7 +23,8 @@
 ## rtems
 include_rtems_HEADERS += include/rtems/assoc.h include/rtems/error.h \
     include/rtems/libcsupport.h include/rtems/libio.h include/rtems/libio_.h \
-    include/rtems/malloc.h include/rtems/termiostypes.h
+    include/rtems/malloc.h include/rtems/termiostypes.h \
+    include/rtems/gxx_wrappers.h
 
 ## zilog
 

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
@@ -0,0 +1,78 @@
+/*
+ *  RTEMS threads compatibility routines for libgcc2.
+ *
+ *  by: Rosimildo da Silva (rdasilva at connecttel.com)
+ *
+ *  Used ideas from:
+ *    W. Eric Norum
+ *    Canadian Light Source
+ *    University of Saskatchewan
+ *    Saskatoon, Saskatchewan, CANADA
+ *    eric at 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 
+#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; 	           /* 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 */

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
@@ -95,6 +95,10 @@
 	$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/termiostypes.h
 PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/termiostypes.h
 
+$(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
+
 $(PROJECT_INCLUDE)/rtems/zilog/$(dirstamp):
 	@$(MKDIR_P) $(PROJECT_INCLUDE)/rtems/zilog
 	@: > $(PROJECT_INCLUDE)/rtems/zilog/$(dirstamp)

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
@@ -25,32 +25,15 @@
 #include "config.h"
 #endif
 
+#include <rtems/gxx_wrappers.h>
+
 #include <stdlib.h>
-#include <stdio.h>
 
 #include <rtems.h>
-#include <rtems/system.h>
-#include <rtems/error.h>
-#include <rtems/rtems/tasks.h>
 
 /* uncomment this if you need to debug this interface */
 /*#define DEBUG_GXX_WRAPPERS 1*/
 
-/*
- * 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;
-
 int rtems_gxx_once(__gthread_once_t *once, void (*func) (void))
 {
   #ifdef DEBUG_GXX_WRAPPERS
@@ -145,7 +128,11 @@
      */
     status = rtems_task_variable_add( RTEMS_SELF, (void **)key, key->dtor );
     if ( status != RTEMS_SUCCESSFUL ) {
-       rtems_panic ("rtems_gxx_getspecific");
+      _Internal_error_Occurred(
+        INTERNAL_ERROR_CORE,
+        true,
+        INTERNAL_ERROR_GXX_KEY_ADD_FAILED
+      );
     }
     key->val = (void *)0;
   }
@@ -212,7 +199,11 @@
         status
       );
     #endif
-    rtems_panic ("rtems_gxx_mutex_init");
+    _Internal_error_Occurred(
+      INTERNAL_ERROR_CORE,
+      true,
+      INTERNAL_ERROR_GXX_MUTEX_INIT_FAILED
+    );
   }
   #ifdef DEBUG_GXX_WRAPPERS
     printk( "gxx_wrappers: mutex init complete =%X\n", *mutex );

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
@@ -70,7 +70,9 @@
   INTERNAL_ERROR_IMPLEMENTATION_BLOCKING_OPERATION_CANCEL,
   INTERNAL_ERROR_MUTEX_OBTAIN_FROM_BAD_STATE,
   INTERNAL_ERROR_UNLIMITED_AND_MAXIMUM_IS_0,
-  INTERNAL_ERROR_SHUTDOWN_WHEN_NOT_UP
+  INTERNAL_ERROR_SHUTDOWN_WHEN_NOT_UP,
+  INTERNAL_ERROR_GXX_KEY_ADD_FAILED,
+  INTERNAL_ERROR_GXX_MUTEX_INIT_FAILED
 } Internal_errors_Core_list;
 
 typedef uint32_t Internal_errors_t;



--

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/20100823/3661fa89/attachment.html>


More information about the vc mailing list