aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/lib/GENcopy_from_user.S
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-08-15 15:26:38 -0700
committerDavid S. Miller <davem@davemloft.net>2016-10-24 11:31:58 -0700
commitd0796b555ba60c22eb41ae39a8362156cb08eee9 (patch)
tree0d254f4e2a9161310692e0010c9c040cb5eae902 /arch/sparc/lib/GENcopy_from_user.S
parentsparc64: Convert copy_in_user to accurate exception reporting. (diff)
downloadlinux-dev-d0796b555ba60c22eb41ae39a8362156cb08eee9.tar.xz
linux-dev-d0796b555ba60c22eb41ae39a8362156cb08eee9.zip
sparc64: Convert GENcopy_{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/GENcopy_from_user.S')
-rw-r--r--arch/sparc/lib/GENcopy_from_user.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/lib/GENcopy_from_user.S b/arch/sparc/lib/GENcopy_from_user.S
index 5bce68202246..69a439fa2fc1 100644
--- a/arch/sparc/lib/GENcopy_from_user.S
+++ b/arch/sparc/lib/GENcopy_from_user.S
@@ -3,11 +3,11 @@
* Copyright (C) 2007 David S. Miller (davem@davemloft.net)
*/
-#define EX_LD(x) \
+#define EX_LD(x,y) \
98: x; \
.section __ex_table,"a";\
.align 4; \
- .word 98b, __retl_mone; \
+ .word 98b, y; \
.text; \
.align 4;