xchg is atomic with side-effects
authorPatrick Georgi <patrick@georgi-clan.de>
Sun, 11 Mar 2012 18:42:33 +0000 (19:42 +0100)
committerPatrick Georgi <patrick@georgi-clan.de>
Fri, 16 Mar 2012 21:22:49 +0000 (22:22 +0100)
commit1a34165e37e8ab7ced6a639441f5df2478246976
tree164e610d23c528f40183a3562034cecb52a4046e
parentfe9210f5d0ba6662ac47d3a9b962665d4d484fee
xchg is atomic with side-effects

clang doesn't know about the side effect, so we have to tell it
that it's okay not to care about the result.

Change-Id: Ib11890bff6779e36cf09c178d224695ea16a8ae8
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/783
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
src/include/cpu/x86/lapic.h