From: H. Peter Anvin Date: Wed, 28 Jul 2010 00:01:49 +0000 (-0700) Subject: x86: Add memory modify constraints to xchg() and cmpxchg() X-Git-Tag: v2.6.36-rc1~45^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=113fc5a6e8c2288619ff7e8187a6f556b7e0d372;p=pandora-kernel.git x86: Add memory modify constraints to xchg() and cmpxchg() xchg() and cmpxchg() modify their memory operands, not merely read them. For some versions of gcc the "memory" clobber has apparently dealt with the situation, but not for all. Originally-by: Linus Torvalds Signed-off-by: H. Peter Anvin Cc: Glauber Costa Cc: Avi Kivity Cc: Peter Palfrader Cc: Greg KH Cc: Alan Cox Cc: Zachary Amsden Cc: Marcelo Tosatti Cc: LKML-Reference: <4C4F7277.8050306@zytor.com> --- Reading git-diff-tree failed