mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-15 00:34:10 +08:00
tools/lguest: real barriers.
Lguest guests are UP, but the host is probably SMP, so real barriers are required in case the device thread and the guest are on different CPUs. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
8fd9a6365e
commit
0d69a65e97
@ -177,8 +177,8 @@ static struct termios orig_term;
|
||||
* in precise order.
|
||||
*/
|
||||
#define wmb() __asm__ __volatile__("" : : : "memory")
|
||||
#define rmb() __asm__ __volatile__("" : : : "memory")
|
||||
#define mb() __asm__ __volatile__("" : : : "memory")
|
||||
#define rmb() __asm__ __volatile__("lock; addl $0,0(%%esp)" : : : "memory")
|
||||
#define mb() __asm__ __volatile__("lock; addl $0,0(%%esp)" : : : "memory")
|
||||
|
||||
/* Wrapper for the last available index. Makes it easier to change. */
|
||||
#define lg_last_avail(vq) ((vq)->last_avail_idx)
|
||||
|
Loading…
Reference in New Issue
Block a user