]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg/ArmGicLib: Fix two macros issue for offset parameter
authorMing Huang <huangming@linux.alibaba.com>
Thu, 25 Feb 2021 03:32:11 +0000 (11:32 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 1 Mar 2021 13:09:24 +0000 (13:09 +0000)
Modify two macros to put "offset" in parentheses and remove
parentheses from "4 * offset".

Signed-off-by: Ming Huang <huangming@linux.alibaba.com>
Reviewed-by: Leif Lindholm <leif@nuviainc.com>
ArmPkg/Drivers/ArmGic/ArmGicLib.c

index 8ef32b33a154ff3df9d86ae30df4ab21cc806b32..5d04ed3dac16eea92a6283a7dafed3061bd1f4f6 100644 (file)
                                            + ARM_GICR_SGI_RESERVED_FRAME_SIZE)\r
 \r
 #define ISENABLER_ADDRESS(base,offset) ((base) + \\r
-          ARM_GICR_CTLR_FRAME_SIZE +  ARM_GICR_ISENABLER + (4 * offset))\r
+          ARM_GICR_CTLR_FRAME_SIZE + ARM_GICR_ISENABLER + 4 * (offset))\r
 \r
 #define ICENABLER_ADDRESS(base,offset) ((base) + \\r
-          ARM_GICR_CTLR_FRAME_SIZE +  ARM_GICR_ICENABLER + (4 * offset))\r
+          ARM_GICR_CTLR_FRAME_SIZE + ARM_GICR_ICENABLER + 4 * (offset))\r
 \r
 /**\r
  *\r