diff options
author | Mark Rutland <[email protected]> | 2023-03-14 15:36:58 +0000 |
---|---|---|
committer | Will Deacon <[email protected]> | 2023-03-28 21:13:25 +0100 |
commit | 39c8275de81cf7fb524e2ff067aa175447412284 (patch) | |
tree | b03d6dd145da3d2156036b70e3613df0e01bb3ba /lib/memory-notifier-error-inject.c | |
parent | e5cacb540fd2509484d6849c0d5372bd67d174b9 (diff) |
arm64: uaccess: permit __smp_store_release() to use zero register
Currently the asm constraints for __smp_store_release() require that the
value is placed in a "real" GPR (i.e. one other than [XW]ZR or SP).
This means that for cases such as:
__smp_store_release(ptr, 0)
... the compiler has to move '0' into "real" GPR, e.g.
mov xN, #0
stlr xN, [<addr>]
This is unfortunate, as using the zero register would require fewer
instructions and save a "real" GPR for other usage, allowing the
compiler to generate:
stlr xzr, [<addr>]
Modify the asm constaints for __smp_store_release() to permit the use of
the zero register for the value.
There should be no functional change as a result of this patch.
Signed-off-by: Mark Rutland <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Robin Murphy <[email protected]>
Cc: Will Deacon <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions