Add brackets around GICv3 redistributor macros

The GICv3 redistributor register access macros take arguments that are
used as variables. Add brackets around them as is the style, and for
safety.

Sponsored by:	Arm Ltd
This commit is contained in:
Andrew Turner 2023-05-25 09:35:14 +01:00
parent 9a49a37929
commit 8b709c88e5

View File

@ -137,8 +137,8 @@ void gic_r_write_8(device_t, bus_size_t, uint64_t var);
u_int cpu = PCPU_GET(cpuid); \
\
bus_read_##len( \
&sc->gic_redists.pcpu[cpu]->res, \
reg); \
&(sc)->gic_redists.pcpu[cpu]->res, \
(reg)); \
})
#define gic_r_write(sc, len, reg, val) \
@ -146,8 +146,8 @@ void gic_r_write_8(device_t, bus_size_t, uint64_t var);
u_int cpu = PCPU_GET(cpuid); \
\
bus_write_##len( \
&sc->gic_redists.pcpu[cpu]->res, \
reg, val); \
&(sc)->gic_redists.pcpu[cpu]->res, \
(reg), (val)); \
})
#endif /* _GIC_V3_VAR_H_ */