diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-05-04 12:36:59 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-05-04 12:36:59 +0000 |
commit | b77b26742e0fd864facc1fa2512bb45391ad78e6 (patch) | |
tree | 8cedd10d1f79d89287958405bf805e12986356db /c/src/exec | |
parent | Added default value for CONFIGURE_MAXIMUM_POSIX_THREADS since it is (diff) | |
download | rtems-b77b26742e0fd864facc1fa2512bb45391ad78e6.tar.bz2 |
fixed swap of unsigned16
Diffstat (limited to 'c/src/exec')
-rw-r--r-- | c/src/exec/score/cpu/sh/sh.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/c/src/exec/score/cpu/sh/sh.h b/c/src/exec/score/cpu/sh/sh.h index b6491128ed..03d9077d3e 100644 --- a/c/src/exec/score/cpu/sh/sh.h +++ b/c/src/exec/score/cpu/sh/sh.h @@ -122,25 +122,25 @@ static inline unsigned int sh_swap_u32( unsigned int value ) { - register unsigned int swapped ; + register unsigned int swapped; asm volatile ( - "swap.b %1,%0 - swap.w %0,%0 - swap.b %0,%0" + "swap.b %1,%0; " + "swap.w %0,%0; " + "swap.b %0,%0" : "=r" (swapped) : "r" (value) ); return( swapped ); } -static inline unsigned int sh_swap_u32( +static inline unsigned int sh_swap_u16( unsigned int value ) { register unsigned int swapped ; - asm volatile ( "swap.b %1,%0 : "=r" (swapped) : "r" (value) ); + asm volatile ( "swap.b %1,%0" : "=r" (swapped) : "r" (value) ); return( swapped ); } |