Skip to content
Commit 45db0738 authored by John David Anglin's avatar John David Anglin Committed by Helge Deller
Browse files

parisc: fix out-of-register compiler error in ldcw inline assembler function



The __ldcw macro has a problem when its argument needs to be reloaded from
memory. The output memory operand and the input register operand both need to
be reloaded using a register in class R1_REGS when generating 64-bit code.
This fails because there's only a single register in the class. Instead, use a
memory clobber. This also makes the __ldcw macro a compiler memory barrier.

Signed-off-by: default avatarJohn David Anglin <dave.anglin@bell.net>
Cc: <stable@vger.kernel.org>        [3.13+]
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent b2776bf7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment