summaryrefslogtreecommitdiffstats
path: root/arch/sparc/lib/NG2copy_from_user.S
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-10-25 05:46:44 +0200
committerDavid S. Miller <davem@davemloft.net>2016-10-25 05:46:44 +0200
commite93704e4464fdc191f73fce35129c18de2ebf95d (patch)
treeac1cda6857dde51b8c58410ba5464ede0e3d263b /arch/sparc/lib/NG2copy_from_user.S
parentsparc64: Convert NGcopy_{from,to}_user to accurate exception reporting. (diff)
downloadlinux-e93704e4464fdc191f73fce35129c18de2ebf95d.tar.xz
linux-e93704e4464fdc191f73fce35129c18de2ebf95d.zip
sparc64: Convert NG2copy_{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/NG2copy_from_user.S')
-rw-r--r--arch/sparc/lib/NG2copy_from_user.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/sparc/lib/NG2copy_from_user.S b/arch/sparc/lib/NG2copy_from_user.S
index 4d47fa5519d4..b79a6998d87c 100644
--- a/arch/sparc/lib/NG2copy_from_user.S
+++ b/arch/sparc/lib/NG2copy_from_user.S
@@ -3,19 +3,19 @@
* 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_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;