summaryrefslogtreecommitdiffstats
path: root/target/linux/coldfire/patches/035-mcfv4e_bitops_cleanup.patch
diff options
context:
space:
mode:
authorkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-06-23 21:04:37 +0000
committerkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-06-23 21:04:37 +0000
commit343c185b7d7383b1f5b5144e837045af28afc42b (patch)
tree6d3382662fa3ad4119d3a3cda223c53949ca4894 /target/linux/coldfire/patches/035-mcfv4e_bitops_cleanup.patch
parent145f9652a593d19b149d2f25febd4aa0c1ab57d1 (diff)
use broken-out patches for the coldfire to make it easier to follow differences against the bsp
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16547 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/coldfire/patches/035-mcfv4e_bitops_cleanup.patch')
-rw-r--r--target/linux/coldfire/patches/035-mcfv4e_bitops_cleanup.patch83
1 files changed, 83 insertions, 0 deletions
diff --git a/target/linux/coldfire/patches/035-mcfv4e_bitops_cleanup.patch b/target/linux/coldfire/patches/035-mcfv4e_bitops_cleanup.patch
new file mode 100644
index 000000000..c4f8cecdb
--- /dev/null
+++ b/target/linux/coldfire/patches/035-mcfv4e_bitops_cleanup.patch
@@ -0,0 +1,83 @@
+From 898b269952d096ce3f990c51b02457c27e16b83c Mon Sep 17 00:00:00 2001
+From: Kurt Mahan <kmahan@freescale.com>
+Date: Sun, 9 Dec 2007 02:25:49 -0700
+Subject: [PATCH] Clean up formatting.
+
+LTIBName: mcfv4e-bitops-cleanup
+Signed-off-by: Kurt Mahan <kmahan@freescale.com>
+---
+ include/asm-m68k/bitops.h | 21 ++++++++++++++-------
+ 1 files changed, 14 insertions(+), 7 deletions(-)
+
+--- a/include/asm-m68k/bitops.h
++++ b/include/asm-m68k/bitops.h
+@@ -478,7 +478,8 @@ static __inline__ int __constant_coldfir
+ return retval;
+ }
+ #else
+-static __inline__ int __constant_coldfire_test_and_set_bit(int nr,volatile void * vaddr)
++static __inline__ int __constant_coldfire_test_and_set_bit(int nr,
++ volatile void *vaddr)
+ {
+ char retval;
+ volatile char *p = &((volatile char *)vaddr)[(nr^31) >> 3];
+@@ -516,7 +517,8 @@ static __inline__ void __constant_coldfi
+ : "+QUd" (*p) : "di" (nr & 7));
+ }
+ #else
+-static __inline__ void __constant_coldfire_set_bit(int nr, volatile void * vaddr)
++static __inline__ void __constant_coldfire_set_bit(int nr,
++ volatile void *vaddr)
+ {
+ volatile char *p = &((volatile char *)vaddr)[(nr^31) >> 3];
+ __asm__ __volatile__ ("bset %1,(%3)"
+@@ -524,7 +526,8 @@ static __inline__ void __constant_coldfi
+ }
+ #endif
+
+-static __inline__ void __generic_coldfire_set_bit(int nr, volatile void *vaddr)
++static __inline__ void __generic_coldfire_set_bit(int nr,
++ volatile void *vaddr)
+ {
+ __asm__ __volatile__ ("bset %1,%0"
+ : "=m" (((volatile char *)vaddr)[(nr^31) >> 3])
+@@ -552,7 +555,8 @@ static __inline__ int __constant_coldfir
+ return retval;
+ }
+ #else
+-static __inline__ int __constant_coldfire_test_and_clear_bit(int nr, volatile void *vaddr)
++static __inline__ int __constant_coldfire_test_and_clear_bit(int nr,
++ volatile void *vaddr)
+ {
+ char retval;
+ volatile char *p = &((volatile char *)vaddr)[(nr^31) >> 3];
+@@ -599,7 +603,8 @@ static __inline__ void __constant_coldfi
+ : "+QUd" (*p) : "id" (nr & 7));
+ }
+ #else
+-static __inline__ void __constant_coldfire_clear_bit(int nr, volatile void * vaddr)
++static __inline__ void __constant_coldfire_clear_bit(int nr,
++ volatile void *vaddr)
+ {
+ volatile char *p = &((volatile char *)vaddr)[(nr^31) >> 3];
+ __asm__ __volatile__ ("bclr %1,(%3)"
+@@ -636,7 +641,8 @@ static __inline__ int __constant_coldfir
+ return retval;
+ }
+ #else
+-static __inline__ int __constant_coldfire_test_and_change_bit(int nr, volatile void * vaddr)
++static __inline__ int __constant_coldfire_test_and_change_bit(int nr,
++ volatile void *vaddr)
+ {
+ char retval;
+ volatile char *p = &((volatile char *)vaddr)[(nr^31) >> 3];
+@@ -678,7 +684,8 @@ static __inline__ void __constant_coldfi
+ : "+QUd" (*p) : "id" (nr & 7));
+ }
+ #else
+-static __inline__ void __constant_coldfire_change_bit(int nr, volatile void * vaddr)
++static __inline__ void __constant_coldfire_change_bit(int nr,
++ volatile void *vaddr)
+ {
+ volatile char *p = &((volatile char *)vaddr)[(nr^31) >> 3];
+ __asm__ __volatile__ ("bchg %1,(%3)"