change log for rtems (2011-10-09)

rtems-vc at rtems.org rtems-vc at rtems.org
Mon Oct 10 03:11:44 UTC 2011


 *ralf*:
2011-10-10	Ralf Corsépius <ralf.corsepius at rtems.org>

	* libchip/network/sonic.c: Don't cast pointers to uint32_t.

M  1.556  c/src/ChangeLog
M   1.18  c/src/libchip/network/sonic.c

diff -u rtems/c/src/ChangeLog:1.555 rtems/c/src/ChangeLog:1.556
--- rtems/c/src/ChangeLog:1.555	Sun Oct  9 10:37:53 2011
+++ rtems/c/src/ChangeLog	Sun Oct  9 21:12:46 2011
@@ -1,3 +1,7 @@
+2011-10-10	Ralf Corsépius <ralf.corsepius at rtems.org>
+
+	* libchip/network/sonic.c: Don't cast pointers to uint32_t.
+
 2011-10-09	Ralf Corsépius <ralf.corsepius at rtems.org>
 
 	* libchip/network/greth.c, libchip/network/open_eth.c

diff -u rtems/c/src/libchip/network/sonic.c:1.17 rtems/c/src/libchip/network/sonic.c:1.18
--- rtems/c/src/libchip/network/sonic.c:1.17	Sun Oct  9 10:37:53 2011
+++ rtems/c/src/libchip/network/sonic.c	Sun Oct  9 21:12:46 2011
@@ -116,8 +116,8 @@
 /*
  * Macros for manipulating 32-bit pointers as 16-bit fragments
  */
-#define LSW(p)   ((uint16_t)((uint32_t)(p)))
-#define MSW(p)   ((uint16_t)((uint32_t)(p) >> 16))
+#define LSW(p)   ((uint16_t)((uintptr_t)(p)))
+#define MSW(p)   ((uint16_t)((uintptr_t)(p) >> 16))
 #define PTR(m,l) ((void*)(((uint16_t)(m)<<16)|(uint16_t)(l)))
 
 /*



--

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/20111009/50f98774/attachment.html>


More information about the vc mailing list