forked from Imagelibrary/rtems
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:
@@ -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
|
||||
|
||||
@@ -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)))
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user