From: Thorkil Naur Date: Fri, 18 May 2007 16:59:57 +0000 (+0000) Subject: Fix PPC Mac OS X memory access problem in SMP.h (#1362) X-Git-Tag: 2007-06-12~24 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=4c1a1e3013f92c3dc05c91fa87dd51b1f7e143f8 Fix PPC Mac OS X memory access problem in SMP.h (#1362) --- diff --git a/includes/SMP.h b/includes/SMP.h index bba80f7..74fbf9a 100644 --- a/includes/SMP.h +++ b/includes/SMP.h @@ -75,7 +75,7 @@ xchg(StgPtr p, StgWord w) "1: lwarx %0, 0, %2\n" " stwcx. %1, 0, %2\n" " bne- 1b" - :"=r" (result) + :"=&r" (result) :"r" (w), "r" (p) ); #elif sparc_HOST_ARCH