]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
xtensa: use "m" constraint instead of "a" in uaccess.h assembly
authorMax Filippov <jcmvbkbc@gmail.com>
Tue, 15 Oct 2019 21:03:03 +0000 (14:03 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 26 Nov 2019 19:33:38 +0000 (11:33 -0800)
commitcbc6e28703c44a321e9d8a8894ec11bc6e7e473d
tree19297af8311e1e551f43b00865a2d84b160c5c5f
parentf5fae6790fd3199e45ead10f7004311abdf539e5
xtensa: use "m" constraint instead of "a" in uaccess.h assembly

Use "m" constraint instead of "r" for the address, as "m" allows
compiler to access adjacent locations using base + offset, while "r"
requires updating the base register every time.
Use %[mem] * 0 + v to replace offset part of %[mem] expansion with v.
It is impossible to change address alignment through the offset part on
xtensa, so just ignore offset in alignment checks.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/include/asm/uaccess.h