change log for rtems (2010-05-23)

rtems-vc at rtems.org rtems-vc at rtems.org
Sun May 23 07:13:23 UTC 2010


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

	PR 1528/cpukit
	* libcsupport/src/malloc_boundary.c: Cast to intptr_t* instead of
	int32_t* for 16 bit target compliance.

M 1.2302  cpukit/ChangeLog
M    1.9  cpukit/libcsupport/src/malloc_boundary.c

diff -u rtems/cpukit/ChangeLog:1.2301 rtems/cpukit/ChangeLog:1.2302
--- rtems/cpukit/ChangeLog:1.2301	Sat May 22 11:51:04 2010
+++ rtems/cpukit/ChangeLog	Sun May 23 01:30:22 2010
@@ -1,3 +1,9 @@
+2010-05-23	Ralf Corsépius <ralf.corsepius at rtems.org>
+
+	PR 1528/cpukit
+	* libcsupport/src/malloc_boundary.c: Cast to intptr_t* instead of
+	int32_t* for 16 bit target compliance.
+
 2010-05-22	Ralf Corsépius <ralf.corsepius at rtems.org>
 
 	* libblock/include/rtems/nvdisk.h, libblock/src/nvdisk-sram.c:
@@ -10,6 +16,7 @@
 	16bit target compliance.
 
 2010-05-22	Ralf Corsépius <ralf.corsepius at rtems.org>
+
 	* libfs/src/rfs/rtems-rfs-bitmaps-ut.c: Use "16 bit int" arg 
 	in call to srand if "32 bit int" doesn't fit into "int".
 

diff -u rtems/cpukit/libcsupport/src/malloc_boundary.c:1.8 rtems/cpukit/libcsupport/src/malloc_boundary.c:1.9
--- rtems/cpukit/libcsupport/src/malloc_boundary.c:1.8	Thu Nov 19 07:51:40 2009
+++ rtems/cpukit/libcsupport/src/malloc_boundary.c	Sun May 23 01:30:23 2010
@@ -75,18 +75,18 @@
 {
   void *return_this;
   struct mallocNode *mp = (struct mallocNode *)pointer;
-  int *fp, *nfp;
+  intptr_t *fp, *nfp;
   int i;
 
   _RTEMS_Lock_allocator();
     mp->memory = mp + 1;
     return_this = mp->memory;
     mp->size = size - (sizeof(struct mallocNode) + SENTINELSIZE);
-    fp = (int *)&size - 2;
+    fp = (intptr_t *)&size - 2;
     for (i = 0 ; i < CALLCHAINSIZE ; i++) {
       mp->callChain[i] = fp[1];
-      nfp = (int *)(fp[0]);
-      if((nfp <= fp) || (nfp > (int *)(INT32_C(0x1000000) /* 1 << 24 */)))
+      nfp = (intptr_t *)(fp[0]);
+      if((nfp <= fp) || (nfp > (intptr_t *)(INT32_C(0x1000000) /* 1 << 24 */)))
        break;
       fp = nfp;
     }



--

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/20100523/58b033a9/attachment.html>


More information about the vc mailing list