summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/sh
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2005-01-24 05:37:38 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2005-01-24 05:37:38 +0000
commita992b8e70bf7792f214f54199bcae0589f874624 (patch)
tree3a8c17771ee6ea3e46d92a1af2eae3be8995249b /cpukit/score/cpu/sh
parent2005-01-24 Ralf Corsepius <ralf.corsepius@rtems.org> (diff)
downloadrtems-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')
-rw-r--r--cpukit/score/cpu/sh/ChangeLog4
-rw-r--r--cpukit/score/cpu/sh/rtems/score/sh.h6
2 files changed, 7 insertions, 3 deletions
diff --git a/cpukit/score/cpu/sh/ChangeLog b/cpukit/score/cpu/sh/ChangeLog
index bdb0ddba66..5f6cd9b2a1 100644
--- a/cpukit/score/cpu/sh/ChangeLog
+++ b/cpukit/score/cpu/sh/ChangeLog
@@ -1,5 +1,9 @@
2005-01-24 Ralf Corsepius <ralf.corsepius@rtems.org>
+ * rtems/score/sh.h: *_swap_u16( uint16_t ).
+
+2005-01-24 Ralf Corsepius <ralf.corsepius@rtems.org>
+
* rtems/score/types.h: #include <rtems/stdint.h>.
2005-01-07 Ralf Corsepius <ralf.corsepius@freenet.de>
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) );