Commit 502279a7 authored by Daniel Hellstrom's avatar Daniel Hellstrom Committed by David S. Miller

sparc: Fixed random SPARC/LEON SMP CPU Stuck problem.

Signed-off-by: default avatarDaniel Hellstrom <daniel@gaisler.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a3e5a375
...@@ -56,8 +56,8 @@ void __init leon_configure_cache_smp(void); ...@@ -56,8 +56,8 @@ void __init leon_configure_cache_smp(void);
static inline unsigned long do_swap(volatile unsigned long *ptr, static inline unsigned long do_swap(volatile unsigned long *ptr,
unsigned long val) unsigned long val)
{ {
__asm__ __volatile__("swapa [%1] %2, %0\n\t" : "=&r"(val) __asm__ __volatile__("swapa [%2] %3, %0\n\t" : "=&r"(val)
: "r"(ptr), "i"(ASI_LEON_DCACHE_MISS) : "0"(val), "r"(ptr), "i"(ASI_LEON_DCACHE_MISS)
: "memory"); : "memory");
return val; return val;
} }
......
Markdown is supported
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