Re: [PATCH] avr32: fix asm operand constraint in cmpxchg()

From: Sudip Mukherjee
Date: Thu Mar 10 2016 - 12:40:09 EST

On Thursday 10 March 2016 07:53 PM, Mans Rullgard wrote:
If the 'old' operand to cmpxchg() is a constant wider than 21 bits,
linking fails with a "relocation truncated to fit: R_AVR32_21S" error.

Fix this by replacing the "i" constraint with "Ks21" which makes the
compiler use a temporary register for out of range constants.

Signed-off-by: Mans Rullgard <mans@xxxxxxxxx>

build log at:

Tested-by: Sudip Mukherjee <sudip.mukherjee@xxxxxxxxxxxxxxx>