change log for rtems (2010-05-29)

rtems-vc at rtems.org rtems-vc at rtems.org
Sat May 29 06:13:21 UTC 2010


 *ralf*:
2010-05-29	Ralf Corsépius <ralf.corsepius at rtems.org>

	PR 1531/newlib:
	* libmisc/shell/fts.c:
	Add local copy of ALIGN().

M 1.2338  cpukit/ChangeLog
M   1.12  cpukit/libmisc/shell/fts.c

diff -u rtems/cpukit/ChangeLog:1.2337 rtems/cpukit/ChangeLog:1.2338
--- rtems/cpukit/ChangeLog:1.2337	Fri May 28 23:35:28 2010
+++ rtems/cpukit/ChangeLog	Sat May 29 00:17:11 2010
@@ -1,5 +1,11 @@
 2010-05-29	Ralf Corsépius <ralf.corsepius at rtems.org>
 
+	PR 1531/newlib:
+	* libmisc/shell/fts.c:
+	Add local copy of ALIGN().
+
+2010-05-29	Ralf Corsépius <ralf.corsepius at rtems.org>
+
 	* libnetworking/net/if.c:
 	Use uintptr_t and void* in _offsetof().
 	* libnetworking/netinet/raw_ip.c:

diff -u rtems/cpukit/libmisc/shell/fts.c:1.11 rtems/cpukit/libmisc/shell/fts.c:1.12
--- rtems/cpukit/libmisc/shell/fts.c:1.11	Sat May 22 11:48:41 2010
+++ rtems/cpukit/libmisc/shell/fts.c	Sat May 29 00:17:11 2010
@@ -87,6 +87,10 @@
 
 #if defined(ALIGNBYTES) && defined(ALIGN)
 #define	FTS_ALLOC_ALIGNED	1
+/* FIXME: Redefine because some versions of 
+ * RTEMS newlib and the BSDs ship a broken ALIGN */
+#undef ALIGN
+#define ALIGN(p)	(((uintptr_t)(p) + ALIGNBYTES) & ~ALIGNBYTES)
 #else
 #undef	FTS_ALLOC_ALIGNED
 #endif
@@ -1055,8 +1059,7 @@
 		return (NULL);
 
 	if (!ISSET(FTS_NOSTAT))
-		p->fts_statp = (__fts_stat_t *)ALIGN(
-		    (uintptr_t)(p->fts_name + namelen + 2));
+		p->fts_statp = (__fts_stat_t *)ALIGN(p->fts_name + namelen + 2);
 #else
 	if ((p = malloc(sizeof(FTSENT) + namelen)) == NULL)
 		return (NULL);


 *ralf*:
2010-05-29	Ralf Corsépius <ralf.corsepius at rtems.org>

	* irq.c: Change _exception_stack_frame into void*.

M   1.12  cpukit/score/cpu/lm32/ChangeLog
M    1.4  cpukit/score/cpu/lm32/irq.c

diff -u rtems/cpukit/score/cpu/lm32/ChangeLog:1.11 rtems/cpukit/score/cpu/lm32/ChangeLog:1.12
--- rtems/cpukit/score/cpu/lm32/ChangeLog:1.11	Sun Apr 25 09:58:27 2010
+++ rtems/cpukit/score/cpu/lm32/ChangeLog	Sat May 29 00:19:12 2010
@@ -1,3 +1,7 @@
+2010-05-29	Ralf Corsépius <ralf.corsepius at rtems.org>
+
+	* irq.c: Change _exception_stack_frame into void*.
+
 2010-04-25	Joel Sherrill <joel.sherrilL at OARcorp.com>
 
 	* rtems/score/cpu.h: Remove warning in _CPU_Context_Initialize.

diff -u rtems/cpukit/score/cpu/lm32/irq.c:1.3 rtems/cpukit/score/cpu/lm32/irq.c:1.4
--- rtems/cpukit/score/cpu/lm32/irq.c:1.3	Sat Mar 27 10:01:51 2010
+++ rtems/cpukit/score/cpu/lm32/irq.c	Sat May 29 00:19:13 2010
@@ -32,7 +32,7 @@
   unsigned long    *_old_stack_ptr;
 #endif
 
-unsigned long *_exception_stack_frame;
+void *_exception_stack_frame;
 
 register unsigned long  *stack_ptr asm("sp");
 


 *ralf*:
2010-05-29	Ralf Corsépius <ralf.corsepius at rtems.org>

	* support/include/tmacros.h: Remove PRIdoff_t.

M  1.164  testsuites/ChangeLog
M   1.54  testsuites/support/include/tmacros.h

diff -u rtems/testsuites/ChangeLog:1.163 rtems/testsuites/ChangeLog:1.164
--- rtems/testsuites/ChangeLog:1.163	Wed Apr 28 11:37:20 2010
+++ rtems/testsuites/ChangeLog	Sat May 29 00:29:33 2010
@@ -1,3 +1,7 @@
+2010-05-29	Ralf Corsépius <ralf.corsepius at rtems.org>
+
+	* support/include/tmacros.h: Remove PRIdoff_t.
+
 2010-04-22	Sebastian Huber <Sebastian.Huber at embedded-brains.de>
 
 	* support/include/tmacros.h: Changed check_dispatch_disable_level() to

diff -u rtems/testsuites/support/include/tmacros.h:1.53 rtems/testsuites/support/include/tmacros.h:1.54
--- rtems/testsuites/support/include/tmacros.h:1.53	Wed Apr 28 11:37:20 2010
+++ rtems/testsuites/support/include/tmacros.h	Sat May 29 00:29:33 2010
@@ -304,9 +304,6 @@
 /* newlib's ino_t is a typedef to "unsigned long" */
 #define PRIxino_t "lx"
 
-/* newlib's off_t is a typedef to "long" */
-#define PRIdoff_t "ld"
-
 /* IEEE Std 1003.1-2008 defines a type blksize_t,
  * newlib currently doesn't have this type, but uses "long" */
 #define PRIxblksize_t "lx"


 *ralf*:
2010-05-29	Ralf Corsépius <ralf.corsepius at rtems.org>

	* configure.ac: Add AC_CHECK_SIZEOF(off_t).
	* include/pmacros.h: Add PRIdoff_t.

M  1.263  testsuites/psxtests/ChangeLog
M   1.61  testsuites/psxtests/configure.ac
M   1.12  testsuites/psxtests/include/pmacros.h

diff -u rtems/testsuites/psxtests/ChangeLog:1.262 rtems/testsuites/psxtests/ChangeLog:1.263
--- rtems/testsuites/psxtests/ChangeLog:1.262	Mon May 17 12:56:12 2010
+++ rtems/testsuites/psxtests/ChangeLog	Sat May 29 00:31:45 2010
@@ -1,3 +1,8 @@
+2010-05-29	Ralf Corsépius <ralf.corsepius at rtems.org>
+
+	* configure.ac: Add AC_CHECK_SIZEOF(off_t).
+	* include/pmacros.h: Add PRIdoff_t.
+
 2010-05-17	Bharath Suri <bharath.s.jois at gmail.com>
 
 	* psxfile01/test.c, psxfile01/psxfile01.scn: This file now

diff -u rtems/testsuites/psxtests/configure.ac:1.60 rtems/testsuites/psxtests/configure.ac:1.61
--- rtems/testsuites/psxtests/configure.ac:1.60	Thu Dec  3 11:15:01 2009
+++ rtems/testsuites/psxtests/configure.ac	Sat May 29 00:31:45 2010
@@ -53,6 +53,9 @@
 # RTEMS provides a stub, despite newlib doesn't have sys/mman.h
 AC_CHECK_DECLS([mprotect],[],[],[[#include <sys/mman.h>]])
 
+# FIXME: We should get rid of this. It's a cludge.
+AC_CHECK_SIZEOF([off_t])
+
 # Explicitly list all Makefiles here
 AC_CONFIG_FILES([Makefile
 psx01/Makefile

diff -u rtems/testsuites/psxtests/include/pmacros.h:1.11 rtems/testsuites/psxtests/include/pmacros.h:1.12
--- rtems/testsuites/psxtests/include/pmacros.h:1.11	Tue Dec  8 11:52:52 2009
+++ rtems/testsuites/psxtests/include/pmacros.h	Sat May 29 00:31:46 2010
@@ -93,6 +93,14 @@
 
 #define empty_line() puts( "" )
 
+#if SIZEOF_OFF_T == 8
+#define PRIdoff_t PRIo64
+#elif SIZEOF_OFF_T == 4
+#define PRIdoff_t PRIo32
+#else
+#error "unsupported size of off_t"
+#endif
+
 #endif
 
 /* end of file */



--

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/20100529/5a960692/attachment-0001.html>


More information about the vc mailing list