summaryrefslogtreecommitdiff
path: root/linux/arch/sparc/lib/U3copy_from_user.S
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2016-04-25 10:00:44 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2016-04-25 10:00:44 -0400
commita1df417e74aa6dae7352dc8cbb0ad471af5b7c69 (patch)
treec34b2311e37ea31db153c90cb8f4570374d05e78 /linux/arch/sparc/lib/U3copy_from_user.S
initial Olimex linux tree from Daniel, originally Feb 3, 2016
Diffstat (limited to 'linux/arch/sparc/lib/U3copy_from_user.S')
-rw-r--r--linux/arch/sparc/lib/U3copy_from_user.S18
1 files changed, 18 insertions, 0 deletions
diff --git a/linux/arch/sparc/lib/U3copy_from_user.S b/linux/arch/sparc/lib/U3copy_from_user.S
new file mode 100644
index 00000000..b1acd133
--- /dev/null
+++ b/linux/arch/sparc/lib/U3copy_from_user.S
@@ -0,0 +1,18 @@
+/* U3copy_from_user.S: UltraSparc-III optimized copy from userspace.
+ *
+ * Copyright (C) 1999, 2000, 2004 David S. Miller (davem@redhat.com)
+ */
+
+#define EX_LD(x) \
+98: x; \
+ .section __ex_table,"a";\
+ .align 4; \
+ .word 98b, __retl_one; \
+ .text; \
+ .align 4;
+
+#define FUNC_NAME U3copy_from_user
+#define LOAD(type,addr,dest) type##a [addr] %asi, dest
+#define EX_RETVAL(x) 0
+
+#include "U3memcpy.S"