]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmVirtPkg/QemuFwCfgLib: rebase lib instance to updated lib class header
authorLaszlo Ersek <lersek@redhat.com>
Fri, 2 Dec 2016 18:40:09 +0000 (19:40 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Mon, 5 Dec 2016 18:44:52 +0000 (19:44 +0100)
Put the FW_CFG_F_DMA constant, introduced in the last patch, to use.

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Leif Lindholm <leif.lindholm@linaro.org>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c

index 6033a2a14c4202f7cbf358d4c298672c4f5b7623..1b19893709fcdc408d423ce1834c4e41fb48c96f 100644 (file)
@@ -163,7 +163,7 @@ QemuFwCfgInitialize (
 \r
         QemuFwCfgSelectItem (QemuFwCfgItemInterfaceVersion);\r
         Features = QemuFwCfgRead32 ();\r
-        if ((Features & BIT1) != 0) {\r
+        if ((Features & FW_CFG_F_DMA) != 0) {\r
           mFwCfgDmaAddress = FwCfgDmaAddress;\r
           InternalQemuFwCfgReadBytes = DmaReadBytes;\r
         }\r