summaryrefslogtreecommitdiff
path: root/arch/sparc/lib/U1copy_to_user.S
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-08-15 16:07:50 -0700
committerDavid S. Miller <davem@davemloft.net>2016-10-24 11:32:12 -0700
commitcb736fdbb208eb3420f1a2eb2bfc024a6e9dcada (patch)
treefe745222354d12a358e35e5df8d6ac4afebff3ee /arch/sparc/lib/U1copy_to_user.S
parentd0796b555ba60c22eb41ae39a8362156cb08eee9 (diff)
sparc64: Convert U1copy_{from,to}_user to accurate exception reporting.
Report the exact number of bytes which have not been successfully copied when an exception occurs, using the running remaining length. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/lib/U1copy_to_user.S')
-rw-r--r--arch/sparc/lib/U1copy_to_user.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/sparc/lib/U1copy_to_user.S b/arch/sparc/lib/U1copy_to_user.S
index adcc3a510185..ed92ce739558 100644
--- a/arch/sparc/lib/U1copy_to_user.S
+++ b/arch/sparc/lib/U1copy_to_user.S
@@ -3,19 +3,19 @@
* Copyright (C) 1999, 2000, 2004 David S. Miller (davem@redhat.com)
*/
-#define EX_ST(x) \
+#define EX_ST(x,y) \
98: x; \
.section __ex_table,"a";\
.align 4; \
- .word 98b, __retl_mone; \
+ .word 98b, y; \
.text; \
.align 4;
-#define EX_ST_FP(x) \
+#define EX_ST_FP(x,y) \
98: x; \
.section __ex_table,"a";\
.align 4; \
- .word 98b, __retl_mone_fp;\
+ .word 98b, y; \
.text; \
.align 4;