Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c6f09f...
Commit: c6f09f0c32e5e30b91dea901f00251173fe997f4
Parent: 5d30a683888c60b8f93bef3ddc139d1a91ca58f4
Author: Harvey Harrison <harvey.harrison@gmail.com>
AuthorDate: Tue Jan 6 14:56:28 2009 -0800
Committer: Linus Torvalds <torvalds@linux-foundation.org>
CommitDate: Tue Jan 6 18:10:27 2009 -0800
m68k: introduce asm/swab.h
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
---
include/asm-m68k/Kbuild | 1 +
include/asm-m68k/byteorder.h | 16 ++--------------
include/asm-m68k/{byteorder.h => swab.h} | 9 +++------
3 files changed, 6 insertions(+), 20 deletions(-)
diff --git a/include/asm-m68k/Kbuild b/include/asm-m68k/Kbuild
index 1a922fa..52fd96b 100644
--- a/include/asm-m68k/Kbuild
+++ b/include/asm-m68k/Kbuild
@@ -1,2 +1,3 @@
include include/asm-generic/Kbuild.asm
header-y += cachectl.h
+unifdef-y += swab.h
diff --git a/include/asm-m68k/byteorder.h b/include/asm-m68k/byteorder.h
index b354acd..3008665 100644
--- a/include/asm-m68k/byteorder.h
+++ b/include/asm-m68k/byteorder.h
@@ -1,19 +1,7 @@
#ifndef _M68K_BYTEORDER_H
#define _M68K_BYTEORDER_H
-#include <asm/types.h>
-#include <linux/compiler.h>
-
-#define __BIG_ENDIAN
-#define __SWAB_64_THRU_32__
-
-static inline __attribute_const__ __u32 __arch_swab32(__u32 val)
-{
- __asm__("rolw #8,%0; swap %0; rolw #8,%0" : "=d" (val) : "0" (val));
- return val;
-}
-#define __arch_swab32 __arch_swab32
-
-#include <linux/byteorder.h>
+#include <asm/swab.h>
+#include <linux/byteorder/big_endian.h>
#endif /* _M68K_BYTEORDER_H */
diff --git a/include/asm-m68k/byteorder.h b/include/asm-m68k/swab.h
similarity index 66%
copy from include/asm-m68k/byteorder.h
copy to include/asm-m68k/swab.h
index b354acd..7221e30 100644
--- ...