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

Michael Neuling mikey at neuling.org
Wed Jul 6 17:17:16 AEST 2016


On Sat, 2016-06-25 at 08:47 +1000, Benjamin Herrenschmidt wrote:
> Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>

Acked-by: Michael Neuling <mikey at neuling.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))
>  


More information about the Skiboot mailing list