forked from luck/tmp_suning_uos_patched
tools/virtio: make asm/barrier.h self contained
We are using abort() so let's include stdlib.h Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
6bd6b282d0
commit
770f359ced
|
@ -1,4 +1,5 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#include <stdlib.h>
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
#define barrier() asm volatile("" ::: "memory")
|
||||
#define virt_mb() __sync_synchronize()
|
||||
|
|
Loading…
Reference in New Issue
Block a user