diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-01-24 05:37:38 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-01-24 05:37:38 +0000 |
commit | a992b8e70bf7792f214f54199bcae0589f874624 (patch) | |
tree | 3a8c17771ee6ea3e46d92a1af2eae3be8995249b /cpukit/score/cpu/sh/rtems/score/sh.h | |
parent | 2005-01-24 Ralf Corsepius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-a992b8e70bf7792f214f54199bcae0589f874624.tar.bz2 |
2005-01-24 Ralf Corsepius <ralf.corsepius@rtems.org>
* rtems/score/sh.h: *_swap_u16( uint16_t ).
Diffstat (limited to 'cpukit/score/cpu/sh/rtems/score/sh.h')
-rw-r--r-- | cpukit/score/cpu/sh/rtems/score/sh.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/score/cpu/sh/rtems/score/sh.h b/cpukit/score/cpu/sh/rtems/score/sh.h index 3606e8617a..f37ce1cdcf 100644 --- a/cpukit/score/cpu/sh/rtems/score/sh.h +++ b/cpukit/score/cpu/sh/rtems/score/sh.h @@ -201,11 +201,11 @@ static inline unsigned int sh_swap_u32( return( swapped ); } -static inline unsigned int sh_swap_u16( - unsigned int value +static inline uint16_t sh_swap_u16( + uint16_t value ) { - register unsigned int swapped ; + register uint16_t swapped ; asm volatile ( "swap.b %1,%0" : "=r" (swapped) : "r" (value) ); |