diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-04-02 12:01:49 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-04-02 12:01:49 +0000 |
commit | 874fb27f4a50c82aaace5de8913e99358b7a72fe (patch) | |
tree | 2c972941fe87b0c2c34fafe4042915d75584b928 /c/src/lib | |
parent | 2007-04-02 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-874fb27f4a50c82aaace5de8913e99358b7a72fe.tar.bz2 |
Use uint*_t instead of char/short/int.
Diffstat (limited to 'c/src/lib')
-rw-r--r-- | c/src/lib/libcpu/powerpc/shared/include/byteorder.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/c/src/lib/libcpu/powerpc/shared/include/byteorder.h b/c/src/lib/libcpu/powerpc/shared/include/byteorder.h index 9607eed601..d08ae6f195 100644 --- a/c/src/lib/libcpu/powerpc/shared/include/byteorder.h +++ b/c/src/lib/libcpu/powerpc/shared/include/byteorder.h @@ -21,7 +21,7 @@ #ifdef __GNUC__ -extern __inline__ unsigned ld_le16(volatile unsigned short *addr) +extern __inline__ unsigned ld_le16(volatile uint16_t *addr) { unsigned val; @@ -29,12 +29,12 @@ extern __inline__ unsigned ld_le16(volatile unsigned short *addr) return val; } -extern __inline__ void st_le16(volatile unsigned short *addr, unsigned val) +extern __inline__ void st_le16(volatile uint16_t *addr, unsigned val) { __asm__ __volatile__ ("sthbrx %1,0,%2" : "=m" (*addr) : "r" (val), "r" (addr)); } -extern __inline__ unsigned ld_le32(volatile unsigned *addr) +extern __inline__ unsigned ld_le32(volatile uint16_t *addr) { unsigned val; @@ -42,7 +42,7 @@ extern __inline__ unsigned ld_le32(volatile unsigned *addr) return val; } -extern __inline__ void st_le32(volatile unsigned *addr, unsigned val) +extern __inline__ void st_le32(volatile uint32_t *addr, unsigned val) { __asm__ __volatile__ ("stwbrx %1,0,%2" : "=m" (*addr) : "r" (val), "r" (addr)); } |