diff options
author | David S. Miller <davem@davemloft.net> | 2016-10-24 21:20:35 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-24 21:20:35 -0700 |
commit | ee841d0aff649164080e445e84885015958d8ff4 (patch) | |
tree | 015261d201e3b2893d19d0b6c9a2d0a80d86cc76 /arch/sparc/lib/U3copy_to_user.S | |
parent | e93704e4464fdc191f73fce35129c18de2ebf95d (diff) | |
download | blackbird-obmc-linux-ee841d0aff649164080e445e84885015958d8ff4.tar.gz blackbird-obmc-linux-ee841d0aff649164080e445e84885015958d8ff4.zip |
sparc64: Convert U3copy_{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/U3copy_to_user.S')
-rw-r--r-- | arch/sparc/lib/U3copy_to_user.S | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/sparc/lib/U3copy_to_user.S b/arch/sparc/lib/U3copy_to_user.S index 032b0c5419b0..c4ee858e352a 100644 --- a/arch/sparc/lib/U3copy_to_user.S +++ b/arch/sparc/lib/U3copy_to_user.S @@ -3,19 +3,19 @@ * Copyright (C) 1999, 2000, 2004 David S. Miller (davem@redhat.com) */ -#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; -#define EX_ST_FP(x) \ +#define EX_ST_FP(x,y) \ 98: x; \ .section __ex_table,"a";\ .align 4; \ - .word 98b, __retl_mone_fp;\ + .word 98b, y##_fp; \ .text; \ .align 4; |