diff options
author | Thomas Huth <thuth@linux.vnet.ibm.com> | 2011-11-24 11:32:35 +0100 |
---|---|---|
committer | Thomas Huth <thuth@linux.vnet.ibm.com> | 2011-11-24 11:32:35 +0100 |
commit | 008fe5610d27796bbf6ae5ef74e14314c237c4c1 (patch) | |
tree | 3582b4ce1bc2228fd2e9ff1f5df729e52fd1a814 /include | |
parent | 4737144db1acbb1374616bafa4e569aac139c5aa (diff) | |
download | SLOF-008fe5610d27796bbf6ae5ef74e14314c237c4c1.zip SLOF-008fe5610d27796bbf6ae5ef74e14314c237c4c1.tar.gz SLOF-008fe5610d27796bbf6ae5ef74e14314c237c4c1.tar.bz2 |
Support for virtio-block PCI devices
The virtio devices are preferred way of providing virtualized devices on
KVM/qemu. Here's now the basic support for virtio block devices.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/ppcp7/cpu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/ppcp7/cpu.h b/include/ppcp7/cpu.h index 6de50d7..8b36382 100644 --- a/include/ppcp7/cpu.h +++ b/include/ppcp7/cpu.h @@ -44,6 +44,11 @@ static inline void flush_cache(void* r, long n) :: "memory", "cc", "r0", "ctr"); } +static inline void +eieio() +{ + asm volatile ("eieio":::"memory"); +} #endif /* __ASSEMBLER__ */ |