diff options
author | David S. Miller <davem@davemloft.net> | 2016-10-24 19:32:12 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-24 19:32:12 -0700 |
commit | 7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e (patch) | |
tree | e8c03b1bf27e6822f2f5486b6211573fd17a0b94 /arch/sparc/lib/NGcopy_to_user.S | |
parent | 95707704800988093a9b9a27e0f2f67f5b4bf2fa (diff) | |
download | op-kernel-dev-7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e.zip op-kernel-dev-7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e.tar.gz |
sparc64: Convert NGcopy_{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/NGcopy_to_user.S')
-rw-r--r-- | arch/sparc/lib/NGcopy_to_user.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/lib/NGcopy_to_user.S b/arch/sparc/lib/NGcopy_to_user.S index 2d6b33d..5c358af 100644 --- a/arch/sparc/lib/NGcopy_to_user.S +++ b/arch/sparc/lib/NGcopy_to_user.S @@ -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; |