[PATCH 2/4] riscv: uaccess: use input constraints for ptr of __put_user
Andreas Schwab
schwab at suse.de
Wed Jun 26 06:35:54 PDT 2024
On Jun 26 2024, Jisheng Zhang wrote:
> no output constraints either. It just uses "r" input constraints to tell
> gcc to read the store address into one proper GP reg.
Again, this is backwards. Being an input operand means the asm is using
this operand as an input to the instructions. The compiler needs to
arrange to put the value in the allocated operand location according to
the constraint.
--
Andreas Schwab, SUSE Labs, schwab at suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the linux-riscv
mailing list