summaryrefslogtreecommitdiff
path: root/target/linux/adm5120-2.6/patches-2.6.22/008-adm5120_hardware_swab.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2007-07-11 13:00:27 +0000
committerGabor Juhos <juhosg@openwrt.org>2007-07-11 13:00:27 +0000
commit4db7fa1c06f3c3681e6ae8aad75e4a1997445023 (patch)
tree258d226f6ffa46cc4ec4888a827f2399dcf16403 /target/linux/adm5120-2.6/patches-2.6.22/008-adm5120_hardware_swab.patch
parentbe6a41df04fe310ded95d38fa984a3226e47866e (diff)
downloadmtk-20170518-4db7fa1c06f3c3681e6ae8aad75e4a1997445023.zip
mtk-20170518-4db7fa1c06f3c3681e6ae8aad75e4a1997445023.tar.gz
mtk-20170518-4db7fa1c06f3c3681e6ae8aad75e4a1997445023.tar.bz2
refactor kernel code (part 1), mark it as broken now
SVN-Revision: 7916
Diffstat (limited to 'target/linux/adm5120-2.6/patches-2.6.22/008-adm5120_hardware_swab.patch')
-rw-r--r--target/linux/adm5120-2.6/patches-2.6.22/008-adm5120_hardware_swab.patch40
1 files changed, 0 insertions, 40 deletions
diff --git a/target/linux/adm5120-2.6/patches-2.6.22/008-adm5120_hardware_swab.patch b/target/linux/adm5120-2.6/patches-2.6.22/008-adm5120_hardware_swab.patch
deleted file mode 100644
index c0fd645..0000000
--- a/target/linux/adm5120-2.6/patches-2.6.22/008-adm5120_hardware_swab.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-Index: linux-2.6.22-rc6/include/asm-mips/byteorder.h
-===================================================================
---- linux-2.6.22-rc6.orig/include/asm-mips/byteorder.h
-+++ linux-2.6.22-rc6/include/asm-mips/byteorder.h
-@@ -58,6 +58,35 @@ static __inline__ __attribute_const__ __
-
- #endif /* CONFIG_CPU_MIPSR2 */
-
-+#ifdef CONFIG_ADM5120_HARDWARE_SWAB
-+
-+static __inline__ __attribute_const__ __u16 ___adm5120__swab16(__u16 x)
-+{
-+ __asm__ (
-+ " sh %2, 0xCA(%1) \n"
-+ " lhu %0, 0xCC(%1) \n"
-+ : "=r" (x)
-+ : "r" (0xB2000000), "r" (x));
-+
-+ return x;
-+}
-+
-+static __inline__ __attribute_const__ __u32 ___adm5120__swab32(__u32 x)
-+{
-+ __asm__ (
-+ " sw %2, 0xC8(%1) \n"
-+ " lw %0, 0xCC(%1) \n"
-+ : "=r" (x)
-+ : "r" (0xB2000000), "r" (x));
-+
-+ return x;
-+}
-+
-+#define __arch__swab16(x) ___adm5120__swab16(x)
-+#define __arch__swab32(x) ___adm5120__swab32(x)
-+
-+#endif /* CONFIG_ADM5120_HARDWARE_SWAB */
-+
- #if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
- # define __BYTEORDER_HAS_U64__
- # define __SWAB_64_THRU_32__