]> xenbits.xensource.com Git - xen.git/commit
x86: Fix atomic_write*() macros to correctly inform GCC that memory
authorKeir Fraser <keir@xen.org>
Sat, 8 Jan 2011 10:45:22 +0000 (10:45 +0000)
committerKeir Fraser <keir@xen.org>
Sat, 8 Jan 2011 10:45:22 +0000 (10:45 +0000)
commitd0cf7e0fa61cad63c3f9eed124f38dd8afe481e0
tree0bab780844a68a7f61a3dff3d6bc3c52d643cc0d
parent5e84ac0a2b77859c98f5cf101bd3934ecb9f191d
x86: Fix atomic_write*() macros to correctly inform GCC that memory
it knows about is being written to.

The bug is a copy-and-paste error from inline asm that writes to I/O
memory. In that case, as with asm for accessign guest memory,
specifying memory as a read-only parameter is acceptable because the
memory cannot alias with anything that GCC reads directly.

Signed-off-by: Keir Fraser <keir@xen.org>
xen-unstable changeset:   22683:533d6e5c0099
xen-unstable date:        Sat Jan 08 10:05:55 2011 +0000
xen/include/asm-x86/atomic.h