[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-arm] [kvm-unit-tests RFC 01/15] libcflat: Add other size defines
From: |
Eric Auger |
Subject: |
[Qemu-arm] [kvm-unit-tests RFC 01/15] libcflat: Add other size defines |
Date: |
Mon, 5 Dec 2016 22:46:32 +0100 |
Introduce additional SZ_256, SZ_8K, SZ_16K macros that will
be used by ITS tests.
Signed-off-by: Eric Auger <address@hidden>
---
lib/libcflat.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/libcflat.h b/lib/libcflat.h
index bdcc561..880810a 100644
--- a/lib/libcflat.h
+++ b/lib/libcflat.h
@@ -35,7 +35,10 @@
#define ALIGN(x, a) __ALIGN((x), (a))
#define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0)
+#define SZ_256 (1 << 8)
#define SZ_4K (1 << 12)
+#define SZ_8K (1 << 13)
+#define SZ_16K (1 << 14)
#define SZ_64K (1 << 16)
#define SZ_2M (1 << 21)
#define SZ_1G (1 << 30)
--
2.5.5