projects
/
coreboot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
xchg is atomic with side-effects
[coreboot.git]
/
src
/
include
/
cpu
/
x86
/
lapic.h
diff --git
a/src/include/cpu/x86/lapic.h
b/src/include/cpu/x86/lapic.h
index 8b44a6cb662ff752d45677e66fdf3d99de7a63a0..68608edab1374e94d34a633bb274f94e1a4daf77 100644
(file)
--- a/
src/include/cpu/x86/lapic.h
+++ b/
src/include/cpu/x86/lapic.h
@@
-108,7
+108,7
@@
static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int siz
static inline void lapic_write_atomic(unsigned long reg, unsigned long v)
{
- xchg((volatile unsigned long *)(LAPIC_DEFAULT_BASE+reg), v);
+
(void)
xchg((volatile unsigned long *)(LAPIC_DEFAULT_BASE+reg), v);
}