|
@@ -24,12 +24,13 @@
|
|
|
|
|
|
#if defined(__KERNEL__) && __LINUX_ARM_ARCH__ >= 6
|
|
#if defined(__KERNEL__) && __LINUX_ARM_ARCH__ >= 6
|
|
|
|
|
|
-static inline __attribute_const__ __u16 __arch_swab16(__u16 x)
|
|
|
|
|
|
+static inline __attribute_const__ __u32 __arch_swahb32(__u32 x)
|
|
{
|
|
{
|
|
__asm__ ("rev16 %0, %1" : "=r" (x) : "r" (x));
|
|
__asm__ ("rev16 %0, %1" : "=r" (x) : "r" (x));
|
|
return x;
|
|
return x;
|
|
}
|
|
}
|
|
-#define __arch_swab16 __arch_swab16
|
|
|
|
|
|
+#define __arch_swahb32 __arch_swahb32
|
|
|
|
+#define __arch_swab16(x) ((__u16)__arch_swahb32(x))
|
|
|
|
|
|
static inline __attribute_const__ __u32 __arch_swab32(__u32 x)
|
|
static inline __attribute_const__ __u32 __arch_swab32(__u32 x)
|
|
{
|
|
{
|