@@ -17,6 +17,7 @@ #include #include #include +#include #include /* Highest syscall used of any syscall flavour */ @@ -199,7 +200,11 @@ 1: ll v0, (a1) move a0, a2 2: sc a0, (a1) +#if R10000_LLSC_WAR+ beqzl a0, 1b +#else beqz a0, 1b +#endif .section __ex_table,"a" PTR 1b, bad_stack