diff options
author | David S. Miller <davem@davemloft.net> | 2016-08-16 01:26:38 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-24 21:31:58 +0300 |
commit | d0796b555ba60c22eb41ae39a8362156cb08eee9 (patch) | |
tree | 0d254f4e2a9161310692e0010c9c040cb5eae902 /arch/sparc/lib/GENcopy_to_user.S | |
parent | 0096ac9f47b1a2e851b3165d44065d18e5f13d58 (diff) | |
download | linux-d0796b555ba60c22eb41ae39a8362156cb08eee9.tar.xz |
sparc64: Convert GENcopy_{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/GENcopy_to_user.S')
-rw-r--r-- | arch/sparc/lib/GENcopy_to_user.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/lib/GENcopy_to_user.S b/arch/sparc/lib/GENcopy_to_user.S index f663ce3ee8d9..9947427ce354 100644 --- a/arch/sparc/lib/GENcopy_to_user.S +++ b/arch/sparc/lib/GENcopy_to_user.S @@ -3,11 +3,11 @@ * Copyright (C) 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, __retl_mone; \ + .word 98b, y; \ .text; \ .align 4; |