interrupt_controller: gic: fix some macro definition
Add parenthesis for the parameters to avoid the issues if parameter is an expression but not an immediate value. Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
This commit is contained in:
parent
e8ffafae12
commit
dd56080d9b
|
@ -193,12 +193,12 @@
|
|||
#endif /* CONFIG_GIC_V2 */
|
||||
|
||||
/* GICD_SGIR */
|
||||
#define GICD_SGIR_TGTFILT(x) (x << 24)
|
||||
#define GICD_SGIR_TGTFILT(x) ((x) << 24)
|
||||
#define GICD_SGIR_TGTFILT_CPULIST GICD_SGIR_TGTFILT(0b00)
|
||||
#define GICD_SGIR_TGTFILT_ALLBUTREQ GICD_SGIR_TGTFILT(0b01)
|
||||
#define GICD_SGIR_TGTFILT_REQONLY GICD_SGIR_TGTFILT(0b10)
|
||||
|
||||
#define GICD_SGIR_CPULIST(x) (x << 16)
|
||||
#define GICD_SGIR_CPULIST(x) ((x) << 16)
|
||||
#define GICD_SGIR_CPULIST_CPU(n) GICD_SGIR_CPULIST(BIT(n))
|
||||
|
||||
#define GICD_SGIR_NSATT BIT(15)
|
||||
|
|
Loading…
Reference in New Issue