[Skiboot] [PATCH 07/33] bitutils: Add PPC_BITMASK8

Benjamin Herrenschmidt benh at kernel.crashing.org
Sat Jun 25 08:47:30 AEST 2016


Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
---
 include/bitutils.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/bitutils.h b/include/bitutils.h
index a262db1..d6d1f88 100644
--- a/include/bitutils.h
+++ b/include/bitutils.h
@@ -32,6 +32,7 @@
 #define PPC_BITMASK(bs,be)	((PPC_BIT(bs) - PPC_BIT(be)) | PPC_BIT(bs))
 #define PPC_BITMASK32(bs,be)	((PPC_BIT32(bs) - PPC_BIT32(be))|PPC_BIT32(bs))
 #define PPC_BITMASK16(bs,be)	((PPC_BIT16(bs) - PPC_BIT16(be))|PPC_BIT16(bs))
+#define PPC_BITMASK8(bs,be)	((PPC_BIT8(bs) - PPC_BIT8(be))|PPC_BIT8(bs))
 #define PPC_BITLSHIFT(be)	(63 - (be))
 #define PPC_BITLSHIFT32(be)	(31 - (be))
 
-- 
2.7.4



More information about the Skiboot mailing list