Skip to content

Commit bfc8be6

Browse files
davem330gregkh
authored andcommitted
sparc64: Convert NGcopy_{from,to}_user to accurate exception reporting.
[ Upstream commit 7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e ] 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent dc3a7a7 commit bfc8be6

3 files changed

Lines changed: 162 additions & 79 deletions

File tree

arch/sparc/lib/NGcopy_from_user.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
* Copyright (C) 2006, 2007 David S. Miller (davem@davemloft.net)
44
*/
55

6-
#define EX_LD(x) \
6+
#define EX_LD(x,y) \
77
98: x; \
88
.section __ex_table,"a";\
99
.align 4; \
10-
.word 98b, __ret_mone_asi;\
10+
.word 98b, y; \
1111
.text; \
1212
.align 4;
1313

arch/sparc/lib/NGcopy_to_user.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
* Copyright (C) 2006, 2007 David S. Miller (davem@davemloft.net)
44
*/
55

6-
#define EX_ST(x) \
6+
#define EX_ST(x,y) \
77
98: x; \
88
.section __ex_table,"a";\
99
.align 4; \
10-
.word 98b, __ret_mone_asi;\
10+
.word 98b, y; \
1111
.text; \
1212
.align 4;
1313

0 commit comments

Comments
 (0)