summaryrefslogtreecommitdiffstats
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
parent0096ac9f47b1a2e851b3165d44065d18e5f13d58 (diff)
downloadop-kernel-dev-d0796b555ba60c22eb41ae39a8362156cb08eee9.zip
op-kernel-dev-d0796b555ba60c22eb41ae39a8362156cb08eee9.tar.gz
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 5bce682..69a439f 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;
OpenPOWER on IntegriCloud