Revision: 14838
          http://sourceforge.net/p/edk2/code/14838
Author:   jljusten
Date:     2013-11-12 18:34:43 +0000 (Tue, 12 Nov 2013)
Log Message:
-----------
OvmfPkg/EmuVariableFvbRuntimeDxe: Disable if flash variables are supported

If QEMU flash is supported, then the PcdFlashNvStorageVariableBase64
will be set by the flash FVB driver. If it is set to a non-zero value,
then we disable memory based variables.

In future patches we will add the flash FVB driver and
force it to run before this driver. Therefore, if QEMU flash
writing is supported, then this driver will be disabled.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>

Modified Paths:
--------------
    trunk/edk2/OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c

Modified: trunk/edk2/OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c
===================================================================
--- trunk/edk2/OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c   2013-11-12 18:34:36 UTC 
(rev 14837)
+++ trunk/edk2/OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c   2013-11-12 18:34:43 UTC 
(rev 14838)
@@ -819,6 +819,12 @@
     return EFI_INVALID_PARAMETER;
   }
 
+  if (PcdGet64 (PcdFlashNvStorageVariableBase64) != 0) {
+    DEBUG ((EFI_D_INFO, "Disabling EMU Variable FVB since "
+                        "flash variables appear to be supported.\n"));
+    return EFI_ABORTED;
+  }
+
   //
   // By default we will initialize the FV contents.  But, if
   // PcdEmuVariableNvStoreReserved is non-zero, then we will

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to