]> git.ipfire.org Git - thirdparty/linux.git/commit
arm64: start using 'asm goto' for put_user()
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 1 Jun 2024 22:04:53 +0000 (15:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 19 Jun 2024 19:33:38 +0000 (12:33 -0700)
commit7fd298d4b39d8d5fe99d56811a7ed78c7a5377d5
tree778e3a29e29eb08ee8945d0a0213fda589e3a8e3
parent86a6a68febfcf57b5c2a7ba33e6d6f1f78ca5197
arm64: start using 'asm goto' for put_user()

This generates noticeably better code since we don't need to test the
error register etc, the exception just jumps to the error handling
directly.

Unlike get_user(), there's no need to worry about old compilers. All
supported compilers support the regular non-output 'asm goto', as
pointed out by Nathan Chancellor.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/arm64/include/asm/asm-extable.h
arch/arm64/include/asm/uaccess.h