mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
tools/virtio: fix smp_mb on x86
Offset 128 overlaps the last word of the redzone. Use 132 which is always beyond that. Signed-off-by: Michael S. Tsirkin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
b4eab7de66
commit
491847f3b2
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ static inline void busy_wait(void)
|
|||
}
|
||||
|
||||
#if defined(__x86_64__) || defined(__i386__)
|
||||
#define smp_mb() asm volatile("lock; addl $0,-128(%%rsp)" ::: "memory", "cc")
|
||||
#define smp_mb() asm volatile("lock; addl $0,-132(%%rsp)" ::: "memory", "cc")
|
||||
#else
|
||||
/*
|
||||
* Not using __ATOMIC_SEQ_CST since gcc docs say they are only synchronized
|
||||
|
|
|
|||
Loading…
Reference in a new issue