summaryrefslogtreecommitdiff
path: root/arch/sparc/lib/NGcopy_from_user.S
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-10-25 05:32:12 +0300
committerDavid S. Miller <davem@davemloft.net>2016-10-25 05:32:12 +0300
commit7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e (patch)
treee8c03b1bf27e6822f2f5486b6211573fd17a0b94 /arch/sparc/lib/NGcopy_from_user.S
parent95707704800988093a9b9a27e0f2f67f5b4bf2fa (diff)
downloadlinux-7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e.tar.xz
sparc64: Convert NGcopy_{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/NGcopy_from_user.S')
-rw-r--r--arch/sparc/lib/NGcopy_from_user.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/lib/NGcopy_from_user.S b/arch/sparc/lib/NGcopy_from_user.S
index e61694c444af..9cd42fcbc781 100644
--- a/arch/sparc/lib/NGcopy_from_user.S
+++ b/arch/sparc/lib/NGcopy_from_user.S
@@ -3,11 +3,11 @@
* Copyright (C) 2006, 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, __ret_mone_asi;\
+ .word 98b, y; \
.text; \
.align 4;