2011-10-10 Ralf Corsépius <ralf.corsepius@rtems.org>

* libchip/network/sonic.c: Don't cast pointers to uint32_t.
This commit is contained in:
Ralf Corsepius
2011-10-10 02:12:46 +00:00
parent 1f25c77783
commit a32a86e758
2 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -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)))
/*