ARC: Don't use "+l" inline asm constraint
Apparenty this is coming in the way of gcc fix which inhibits the usage of LP_COUNT as a gpr. Cc: stable@vger.kernel.org Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
This commit is contained in:
Родитель
e5517c2a5a
Коммит
3c7c7a2fc8
|
@ -22,10 +22,11 @@
|
||||||
static inline void __delay(unsigned long loops)
|
static inline void __delay(unsigned long loops)
|
||||||
{
|
{
|
||||||
__asm__ __volatile__(
|
__asm__ __volatile__(
|
||||||
" lp 1f \n"
|
" mov lp_count, %0 \n"
|
||||||
" nop \n"
|
" lp 1f \n"
|
||||||
"1: \n"
|
" nop \n"
|
||||||
: "+l"(loops));
|
"1: \n"
|
||||||
|
: : "r"(loops));
|
||||||
}
|
}
|
||||||
|
|
||||||
extern void __bad_udelay(void);
|
extern void __bad_udelay(void);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче