diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-01-24 05:40:52 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-01-24 05:40:52 +0000 |
commit | a04f3715c228985d97da9d91a394279bd9dadd52 (patch) | |
tree | 8a26213249b1ebc3fa50d6574efa849221c61951 /cpukit/score/cpu | |
parent | 2005-01-24 Ralf Corsepius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-a04f3715c228985d97da9d91a394279bd9dadd52.tar.bz2 |
2005-01-24 Ralf Corsepius <ralf.corsepius@rtems.org>
* rtems/score/m68k.h: *_swap_u32( uint32_t ).
Diffstat (limited to 'cpukit/score/cpu')
-rw-r--r-- | cpukit/score/cpu/m68k/ChangeLog | 4 | ||||
-rw-r--r-- | cpukit/score/cpu/m68k/rtems/score/m68k.h | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/cpukit/score/cpu/m68k/ChangeLog b/cpukit/score/cpu/m68k/ChangeLog index bcc0ba0237..737094ecbc 100644 --- a/cpukit/score/cpu/m68k/ChangeLog +++ b/cpukit/score/cpu/m68k/ChangeLog @@ -1,5 +1,9 @@ 2005-01-24 Ralf Corsepius <ralf.corsepius@rtems.org> + * rtems/score/m68k.h: *_swap_u32( uint32_t ). + +2005-01-24 Ralf Corsepius <ralf.corsepius@rtems.org> + * rtems/score/m68k.h: *_swap_u16( uint16_t ). 2005-01-24 Ralf Corsepius <ralf.corsepius@rtems.org> diff --git a/cpukit/score/cpu/m68k/rtems/score/m68k.h b/cpukit/score/cpu/m68k/rtems/score/m68k.h index b9af1c52dd..be9b9dbfb4 100644 --- a/cpukit/score/cpu/m68k/rtems/score/m68k.h +++ b/cpukit/score/cpu/m68k/rtems/score/m68k.h @@ -339,8 +339,8 @@ extern "C" { /* There are no rotate commands in Coldfire architecture. We will use * generic implementation of endian swapping for Coldfire. */ -static inline unsigned int m68k_swap_u32( - unsigned int value +static inline uint32_t m68k_swap_u32( + uint32_t value ) { uint32_t byte1, byte2, byte3, byte4, swapped; @@ -363,11 +363,11 @@ static inline uint16_t m68k_swap_u16( #else -static inline unsigned int m68k_swap_u32( - unsigned int value +static inline uint32_t m68k_swap_u32( + uint32_t value ) { - unsigned int swapped = value; + uint32_t swapped = value; asm volatile( "rorw #8,%0" : "=d" (swapped) : "0" (swapped) ); asm volatile( "swap %0" : "=d" (swapped) : "0" (swapped) ); |