diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-05-05 19:37:10 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-05-05 19:37:10 +0000 |
commit | 4848b560836f1f9e190bdb57120b173cdd2536d2 (patch) | |
tree | cd78cb370ee87f8b9e5be2560092cceeabbfa03e /cpukit/score/cpu/arm | |
parent | 2009-05-05 Jennifer Averett <jennifer.averett@OARcorp.com> (diff) | |
download | rtems-4848b560836f1f9e190bdb57120b173cdd2536d2.tar.bz2 |
2009-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/score/cpu.h: Remove warnings.
Diffstat (limited to 'cpukit/score/cpu/arm')
-rw-r--r-- | cpukit/score/cpu/arm/ChangeLog | 4 | ||||
-rw-r--r-- | cpukit/score/cpu/arm/rtems/score/cpu.h | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/cpukit/score/cpu/arm/ChangeLog b/cpukit/score/cpu/arm/ChangeLog index 0fa9932b1f..6bf9b93f24 100644 --- a/cpukit/score/cpu/arm/ChangeLog +++ b/cpukit/score/cpu/arm/ChangeLog @@ -1,3 +1,7 @@ +2009-05-05 Joel Sherrill <joel.sherrill@oarcorp.com> + + * rtems/score/cpu.h: Remove warnings. + 2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com> * cpu.c, rtems/score/cpu.h: Eliminate _CPU_Thread_dispatch_pointer and diff --git a/cpukit/score/cpu/arm/rtems/score/cpu.h b/cpukit/score/cpu/arm/rtems/score/cpu.h index e9591e3400..d68030f817 100644 --- a/cpukit/score/cpu/arm/rtems/score/cpu.h +++ b/cpukit/score/cpu/arm/rtems/score/cpu.h @@ -828,14 +828,14 @@ static inline uint32_t CPU_swap_u32( #endif } -static inline uint16_t CPU_swap_u16(uint16_t value) +static inline uint16_t CPU_swap_u16(uint16_t value) { uint16_t lower; uint16_t upper; - value = value & (uint16_t ) 0xffff; - lower = (value >> 8) ; - upper = (value << 8) ; + value = value & (uint16_t) 0xffff; + lower = (value >> 8); + upper = (value << 8) & 0xff; return (lower | upper); } |