[edk2-devel][PATCH] EmulatorPkg/Unix Prevents the compiler form optimizing unused variable

2020-09-24 Thread Yu Liu
gInXcode is only used by GDB script and if optimization is turned on then compiler treats this variable as unused so it can't been linked in the final object. Signed-off-by: LiuYu --- EmulatorPkg/Unix/Host/Host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EmulatorPkg/Un

[edk2-devel][PATCH] ArmPkg/ArmPciCpuIo2Dxe: Correct pci io memmap address

2020-09-15 Thread Yu Liu
Since the device addresss has been translated in PciRootBridgeIo.c so shuldn't translate it twice in ArmPciCpuIo2Dxe.c Signed-off-by: LiuYu --- ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.c