From d61a5f45a9e273f9e03453c158b050e76c7dd1db Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Fri, 2 Dec 2016 19:40:09 +0100 Subject: [PATCH] ArmVirtPkg/QemuFwCfgLib: rebase lib instance to updated lib class header Put the FW_CFG_F_DMA constant, introduced in the last patch, to use. Cc: Ard Biesheuvel Cc: Leif Lindholm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Leif Lindholm Reviewed-by: Ard Biesheuvel Reviewed-by: Jordan Justen --- ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c b/ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c index 6033a2a14c..1b19893709 100644 --- a/ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c +++ b/ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c @@ -163,7 +163,7 @@ QemuFwCfgInitialize ( QemuFwCfgSelectItem (QemuFwCfgItemInterfaceVersion); Features = QemuFwCfgRead32 (); - if ((Features & BIT1) != 0) { + if ((Features & FW_CFG_F_DMA) != 0) { mFwCfgDmaAddress = FwCfgDmaAddress; InternalQemuFwCfgReadBytes = DmaReadBytes; }