[sparc] remove broken flag
[openwrt.git] / target / linux / leon / patches / 003-smp_cpu_stuck_fix.patch
1 From 417bc6751fdd3c24df274f25e020ec3decd09280 Mon Sep 17 00:00:00 2001
2 From: Daniel Hellstrom <daniel@gaisler.com>
3 Date: Thu, 16 Sep 2010 11:00:46 +0200
4 Subject: [PATCH] Fixed SPARC/LEON SMP CPU Stuck problem.
5
6 Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
7 ---
8  arch/sparc/kernel/leon_smp.c |    4 ++--
9  1 files changed, 2 insertions(+), 2 deletions(-)
10
11 --- a/arch/sparc/kernel/leon_smp.c
12 +++ b/arch/sparc/kernel/leon_smp.c
13 @@ -56,8 +56,8 @@ void __init leon_configure_cache_smp(voi
14  static inline unsigned long do_swap(volatile unsigned long *ptr,
15                                     unsigned long val)
16  {
17 -       __asm__ __volatile__("swapa [%1] %2, %0\n\t" : "=&r"(val)
18 -                            : "r"(ptr), "i"(ASI_LEON_DCACHE_MISS)
19 +       __asm__ __volatile__("swapa [%2] %3, %0\n\t" : "=&r"(val)
20 +                            : "0"(val), "r"(ptr), "i"(ASI_LEON_DCACHE_MISS)
21                              : "memory");
22         return val;
23  }