mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	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:
		
							parent
							
								
									e5517c2a5a
								
							
						
					
					
						commit
						3c7c7a2fc8
					
				
					 1 changed files with 5 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -22,10 +22,11 @@
 | 
			
		|||
static inline void __delay(unsigned long loops)
 | 
			
		||||
{
 | 
			
		||||
	__asm__ __volatile__(
 | 
			
		||||
	"	mov lp_count, %0	\n"
 | 
			
		||||
	"	lp  1f			\n"
 | 
			
		||||
	"	nop			\n"
 | 
			
		||||
	"1:				\n"
 | 
			
		||||
	: "+l"(loops));
 | 
			
		||||
	: : "r"(loops));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
extern void __bad_udelay(void);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue