]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Tell gcc when we clobber the carry in inline asm
authorPaul Mackerras <paulus@samba.org>
Wed, 5 Nov 2008 18:39:27 +0000 (18:39 +0000)
committerPaul Mackerras <paulus@samba.org>
Wed, 19 Nov 2008 05:04:28 +0000 (16:04 +1100)
commitf0727ba92db147b4c6501b3e173bd23aa752254c
tree706b7ec9f2b240c23869887200db8c7088a76842
parente167ea4667bbec0217eb74089ae595b2ef6d16e6
powerpc: Tell gcc when we clobber the carry in inline asm

We have several instances of inline assembly code that use the addic
or addic. instructions, but don't include XER in the list of clobbers.
The addic and addic. instructions affect the carry bit, which is in
the XER register.

This adds "xer" to the list of clobbers for those inline asm
statements that use addic or addic. and didn't already have it.

Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/include/asm/atomic.h
arch/powerpc/include/asm/local.h
arch/powerpc/include/asm/spinlock.h