summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_output.py
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2025-02-11 20:19:26 +0100
committerVasily Gorbik <gor@linux.ibm.com>2025-03-04 17:18:03 +0100
commitc488f5187a24969b40fd08c3e9ead377c0cfb9b3 (patch)
treef8cde8b32b1cc9267f8bd683e22050e7900ef4fe /scripts/lib/kdoc/kdoc_output.py
parentfb5bbcdcc3eabd8e9061eac7c3223e3de640adfa (diff)
s390/uaccess: Shorten raw_copy_from_user() / raw_copy_to_user() inline assemblies
Add specific exception handler for copy_to_user() / copy_from_user() mvcos fault handling, which allows to shorten the inline assemblies to three instructions. On fault the exception handler adjusts the length used by the mvcos instruction in a way that the instruction completes with condition code zero, indicating the number of bytes copied with the input/output operand 'size'. This allows to calculate and return the number of bytes not copied, if any, like required. Loop and return value handling is changed to C so that the compiler may optimize the code. Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions