summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-10-10 02:12:46 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-10-10 02:12:46 +0000
commita32a86e7589735a3ce55f0474fcc95393830b281 (patch)
tree492094e8e8884da571ffb9ecb311e29b7cb021b5 /c
parent2011-10-09 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-a32a86e7589735a3ce55f0474fcc95393830b281.tar.bz2
2011-10-10 Ralf Corsépius <ralf.corsepius@rtems.org>
* libchip/network/sonic.c: Don't cast pointers to uint32_t.
Diffstat (limited to 'c')
-rw-r--r--c/src/ChangeLog4
-rw-r--r--c/src/libchip/network/sonic.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/c/src/ChangeLog b/c/src/ChangeLog
index a3f2820f2b..195876ff53 100644
--- a/c/src/ChangeLog
+++ b/c/src/ChangeLog
@@ -1,3 +1,7 @@
+2011-10-10 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * libchip/network/sonic.c: Don't cast pointers to uint32_t.
+
2011-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* libchip/network/greth.c, libchip/network/open_eth.c
diff --git a/c/src/libchip/network/sonic.c b/c/src/libchip/network/sonic.c
index ce7c11168c..a76f1c16ed 100644
--- a/c/src/libchip/network/sonic.c
+++ b/c/src/libchip/network/sonic.c
@@ -116,8 +116,8 @@ extern rtems_isr_entry set_vector( rtems_isr_entry, rtems_vector_number, int );
/*
* 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)))
/*