aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120-2.6/patches/008-adm5120_hardware_swab.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2007-07-23 09:27:32 +0000
committerGabor Juhos <juhosg@openwrt.org>2007-07-23 09:27:32 +0000
commit7c175c0d4f0d482cc0fc566b3ca91b7c2ca45f14 (patch)
treef00017d6aeffe019b7b99481c56ae722765a2783 /target/linux/adm5120-2.6/patches/008-adm5120_hardware_swab.patch
parent26cddcb496b8e67ea1e0678a494c14d7bfee4bf2 (diff)
downloadupstream-7c175c0d4f0d482cc0fc566b3ca91b7c2ca45f14.tar.gz
upstream-7c175c0d4f0d482cc0fc566b3ca91b7c2ca45f14.tar.bz2
upstream-7c175c0d4f0d482cc0fc566b3ca91b7c2ca45f14.zip
cleanup patches * nuke patches for 2.6.21 * refresh patches for 2.6.22
SVN-Revision: 8122
Diffstat (limited to 'target/linux/adm5120-2.6/patches/008-adm5120_hardware_swab.patch')
-rw-r--r--target/linux/adm5120-2.6/patches/008-adm5120_hardware_swab.patch38
1 files changed, 0 insertions, 38 deletions
diff --git a/target/linux/adm5120-2.6/patches/008-adm5120_hardware_swab.patch b/target/linux/adm5120-2.6/patches/008-adm5120_hardware_swab.patch
deleted file mode 100644
index 6b0fe55edf..0000000000
--- a/target/linux/adm5120-2.6/patches/008-adm5120_hardware_swab.patch
+++ /dev/null
@@ -1,38 +0,0 @@
---- linux-2.6.19.2/include/asm-mips/byteorder.h 2007-01-10 20:10:37.000000000 +0100
-+++ linux-2.6.19.2.new/include/asm-mips/byteorder.h 2007-05-16 21:14:47.000000000 +0200
-@@ -58,6 +58,35 @@
-
- #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__