forked from Mirrors/opensbi
		
	lib: Fix typo in atomic exchange functions
There is a typo in atomic operations code which prevents the usage of riscv atomic instructions even if it is supported. Fix the typo. Signed-off-by: Atish Patra <atish.patra@wdc.com> Reviewed-by: Anup Patel <anup.patel@wdc.com>
This commit is contained in:
		@@ -79,7 +79,7 @@ long atomic_sub_return(atomic_t *atom, long value)
 | 
			
		||||
#define axchg(ptr, x)							\
 | 
			
		||||
	({									\
 | 
			
		||||
		__typeof__(*(ptr)) _x_ = (x);					\
 | 
			
		||||
		(__typeof__(*(ptr))) __xchg((ptr), _x_, sizeof(*(ptr)));	\
 | 
			
		||||
		(__typeof__(*(ptr))) __axchg((ptr), _x_, sizeof(*(ptr)));	\
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user