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,3 +1,7 @@ +2005-01-24 Ralf Corsepius + + * rtems/score/sh.h: *_swap_u16( uint16_t ). + 2005-01-24 Ralf Corsepius * rtems/score/types.h: #include . 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) );