summaryrefslogtreecommitdiff
path: root/arch/sparc/lib/NG4copy_from_user.S
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-10-25 04:58:05 +0300
committerDavid S. Miller <davem@davemloft.net>2016-10-25 04:58:05 +0300
commit95707704800988093a9b9a27e0f2f67f5b4bf2fa (patch)
treee910ba46194a2fbb5d5b6693b2c17514d8fbd8b3 /arch/sparc/lib/NG4copy_from_user.S
parentcb736fdbb208eb3420f1a2eb2bfc024a6e9dcada (diff)
downloadlinux-95707704800988093a9b9a27e0f2f67f5b4bf2fa.tar.xz
sparc64: Convert NG4copy_{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/NG4copy_from_user.S')
-rw-r--r--arch/sparc/lib/NG4copy_from_user.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/sparc/lib/NG4copy_from_user.S b/arch/sparc/lib/NG4copy_from_user.S
index f9746e7cf25e..16a286c1a528 100644
--- a/arch/sparc/lib/NG4copy_from_user.S
+++ b/arch/sparc/lib/NG4copy_from_user.S
@@ -3,19 +3,19 @@
* Copyright (C) 2012 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_asi;\
+ .word 98b, y; \
.text; \
.align 4;
-#define EX_LD_FP(x) \
+#define EX_LD_FP(x,y) \
98: x; \
.section __ex_table,"a";\
.align 4; \
- .word 98b, __retl_mone_asi_fp;\
+ .word 98b, y##_fp; \
.text; \
.align 4;