Skip to content

Commit 84ac965

Browse files
committed
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 <[email protected]>
1 parent 1200f21 commit 84ac965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/lib/spinlock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static inline int arch_load_niai4(int *lock)
7777
asm_inline volatile(
7878
ALTERNATIVE("nop", ".insn rre,0xb2fa0000,4,0", ALT_FACILITY(49)) /* NIAI 4 */
7979
" l %[owner],%[lock]\n"
80-
: [owner] "=d" (owner) : [lock] "Q" (*lock) : "memory");
80+
: [owner] "=d" (owner) : [lock] "R" (*lock) : "memory");
8181
return owner;
8282
}
8383

0 commit comments

Comments
 (0)