mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02:00
s390/spinlock: Use R constraint for arch_load_niai4()
The load instruction used within arch_load_niai4() has a short displacement and index register. Therefore use the R constraint to reflect this. The used Q constraint does consider an index register. Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
This commit is contained in:
parent
1200f216a3
commit
84ac96587b
|
|
@ -77,7 +77,7 @@ static inline int arch_load_niai4(int *lock)
|
|||
asm_inline volatile(
|
||||
ALTERNATIVE("nop", ".insn rre,0xb2fa0000,4,0", ALT_FACILITY(49)) /* NIAI 4 */
|
||||
" l %[owner],%[lock]\n"
|
||||
: [owner] "=d" (owner) : [lock] "Q" (*lock) : "memory");
|
||||
: [owner] "=d" (owner) : [lock] "R" (*lock) : "memory");
|
||||
return owner;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user