Changeset a32a86e in rtems
- Timestamp:
- 10/10/11 02:12:46 (11 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 87f4e9ba
- Parents:
- 1f25c77
- Location:
- c/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/ChangeLog
r1f25c77 ra32a86e 1 2011-10-10 Ralf Corsépius <ralf.corsepius@rtems.org> 2 3 * libchip/network/sonic.c: Don't cast pointers to uint32_t. 4 1 5 2011-10-09 Ralf Corsépius <ralf.corsepius@rtems.org> 2 6 -
c/src/libchip/network/sonic.c
r1f25c77 ra32a86e 117 117 * Macros for manipulating 32-bit pointers as 16-bit fragments 118 118 */ 119 #define LSW(p) ((uint16_t)((uint 32_t)(p)))120 #define MSW(p) ((uint16_t)((uint 32_t)(p) >> 16))119 #define LSW(p) ((uint16_t)((uintptr_t)(p))) 120 #define MSW(p) ((uint16_t)((uintptr_t)(p) >> 16)) 121 121 #define PTR(m,l) ((void*)(((uint16_t)(m)<<16)|(uint16_t)(l))) 122 122
Note: See TracChangeset
for help on using the changeset viewer.