summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-04-03 14:22:48 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-04-03 14:22:48 +0000
commit30337d2a30c45b8e4b693cf152f5331ff44be5ec (patch)
tree8062e2adc7eebdd3ecde23b3c1ea121eee407c99 /c/src/lib/libcpu/powerpc
parent2002-04-02 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-30337d2a30c45b8e4b693cf152f5331ff44be5ec.tar.bz2
2002-02-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* shared/include/byteorder.h: Use unsigned instead of __unsigned (GCC-3.0.x compatibility).
Diffstat (limited to 'c/src/lib/libcpu/powerpc')
-rw-r--r--c/src/lib/libcpu/powerpc/ChangeLog5
-rw-r--r--c/src/lib/libcpu/powerpc/shared/include/byteorder.h8
2 files changed, 9 insertions, 4 deletions
diff --git a/c/src/lib/libcpu/powerpc/ChangeLog b/c/src/lib/libcpu/powerpc/ChangeLog
index 99a6f5e25f..d4db734e29 100644
--- a/c/src/lib/libcpu/powerpc/ChangeLog
+++ b/c/src/lib/libcpu/powerpc/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+
+ * shared/include/byteorder.h: Use unsigned instead of __unsigned
+ (GCC-3.0.x compatibility).
+
2002-03-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac:
diff --git a/c/src/lib/libcpu/powerpc/shared/include/byteorder.h b/c/src/lib/libcpu/powerpc/shared/include/byteorder.h
index 16faebef04..d90742e768 100644
--- a/c/src/lib/libcpu/powerpc/shared/include/byteorder.h
+++ b/c/src/lib/libcpu/powerpc/shared/include/byteorder.h
@@ -55,9 +55,9 @@ extern __inline__ void st_le32(volatile unsigned *addr, unsigned val)
# define __arch_swab16(x) ld_le16(&x)
# define __arch_swab32(x) ld_le32(&x)
#else
-static __inline__ __const__ __unsigned short ___arch__swab16(__unsigned short value)
+static __inline__ __const__ unsigned short ___arch__swab16(unsigned short value)
{
- __unsigned int tmp;
+ unsigned int tmp;
__asm__("rlwimi %0,%0,8,0xff0000"
: "=r" (tmp)
@@ -65,9 +65,9 @@ static __inline__ __const__ __unsigned short ___arch__swab16(__unsigned short va
return (tmp&0x00ffff00)>>8;
}
-static __inline__ __const__ __unsigned int ___arch__swab32(__unsigned int value)
+static __inline__ __const__ unsigned int ___arch__swab32(unsigned int value)
{
- __unsigned int result;
+ unsigned int result;
__asm__("rotlwi %0,%1,24\n\t"
"rlwimi %0,%1,8,0xff\n\t"