aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2016-09-06 15:38:55 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2016-09-06 15:58:09 +0200
commitf980302461faad89a3fd1075e5c977c9f6f9d58e (patch)
tree65ec0bfb33668ff44b82929ff2e44be96d2abcc8 /include
parent0b3fc2e09f09f13c79b4b7b04f8097ce9253b692 (diff)
downloadqboot-f980302461faad89a3fd1075e5c977c9f6f9d58e.zip
qboot-f980302461faad89a3fd1075e5c977c9f6f9d58e.tar.gz
qboot-f980302461faad89a3fd1075e5c977c9f6f9d58e.tar.bz2
use DMA to read fw_cfg file names
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/bswap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/bswap.h b/include/bswap.h
index 2a72bd0..67b3c4f 100644
--- a/include/bswap.h
+++ b/include/bswap.h
@@ -1,6 +1,11 @@
#ifndef BSWAP_H
#define BSWAP_H 1
+static inline uint16_t bswap16(uint16_t x)
+{
+ return __builtin_bswap16(x);
+}
+
static inline uint32_t bswap32(uint32_t x)
{
return __builtin_bswap32(x);