xen/arm: gic: Introduce GIC_PRI_{IRQ/IPI}_ALL
authorMichal Orzel <michal.orzel@arm.com>
Wed, 2 Mar 2022 09:59:11 +0000 (10:59 +0100)
committerJulien Grall <jgrall@amazon.com>
Thu, 3 Mar 2022 19:53:41 +0000 (19:53 +0000)
commitb692523fafb39f5f930e1e8a316f7b8cebc9f62a
tree00296dcab002b3a5d9f0b3da99d3fba03b9e9665
parent3e56754b08871ccceff856ff634731b9b9bccbbe
xen/arm: gic: Introduce GIC_PRI_{IRQ/IPI}_ALL

Introduce macros GIC_PRI_IRQ_ALL and GIC_PRI_IPI_ALL to be used in all
the places where we want to set default priority for all the offsets
in interrupt priority register. This will improve readability and
allow to get rid of introducing variables just to store this value.

Take the opportunity to mark GIC_PRI_{IRQ/IPI} as unsigned values
to suppress static analyzer warnings as they are used in expressions
exceeding integer range (shifting into signed bit). Modify also other
priority related macros to be coherent.

Signed-off-by: Michal Orzel <michal.orzel@arm.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/gic-v2.c
xen/arch/arm/gic-v3.c
xen/arch/arm/include/asm/gic.h