summaryrefslogtreecommitdiffstats
path: root/kernel/arch/mips/lib/bswapsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/mips/lib/bswapsi.c')
-rw-r--r--kernel/arch/mips/lib/bswapsi.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/arch/mips/lib/bswapsi.c b/kernel/arch/mips/lib/bswapsi.c
new file mode 100644
index 000000000..2b302ff12
--- /dev/null
+++ b/kernel/arch/mips/lib/bswapsi.c
@@ -0,0 +1,11 @@
+#include <linux/module.h>
+
+unsigned int __bswapsi2(unsigned int u)
+{
+ return (((u) & 0xff000000) >> 24) |
+ (((u) & 0x00ff0000) >> 8) |
+ (((u) & 0x0000ff00) << 8) |
+ (((u) & 0x000000ff) << 24);
+}
+
+EXPORT_SYMBOL(__bswapsi2);