Skip to content

Commit

Permalink
sparc64: Convert NGcopy_{from,to}_user to accurate exception reporting.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed Oct 25, 2016
1 parent 9570770 commit 7ae3aaf
Show file tree
Hide file tree
Showing 3 changed files with 162 additions and 79 deletions.
4 changes: 2 additions & 2 deletions arch/sparc/lib/NGcopy_from_user.S
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions arch/sparc/lib/NGcopy_to_user.S
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
* Copyright (C) 2006, 2007 David S. Miller (davem@davemloft.net)
*/

#define EX_ST(x) \
#define EX_ST(x,y) \
98: x; \
.section __ex_table,"a";\
.align 4; \
.word 98b, __ret_mone_asi;\
.word 98b, y; \
.text; \
.align 4;

Expand Down
Loading

0 comments on commit 7ae3aaf

Please sign in to comment.