Skip to content
Commit cbc6e287 authored by Max Filippov's avatar Max Filippov
Browse files

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: default avatarMax Filippov <jcmvbkbc@gmail.com>
parent f5fae679
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment