]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/PlatformPei/Platform.c
Change to a NEON compatible CPU Arch (ARMv7 is NEON optional) and add performance...
[mirror_edk2.git] / OvmfPkg / PlatformPei / Platform.c
index 0a7894438d2aecdb470dff0619c0d2e80c92291a..889ba51240a56e423b4b43b677a71f2d220bfb69 100644 (file)
@@ -1,7 +1,7 @@
 /**@file\r
   Platform PEI driver\r
 \r
-  Copyright (c) 2006 - 2009, Intel Corporation\r
+  Copyright (c) 2006 - 2010, Intel Corporation\r
   All rights reserved. This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -172,11 +172,13 @@ ReserveEmuVariableNvStore (
   //\r
   VariableStore =\r
     (EFI_PHYSICAL_ADDRESS)(UINTN)\r
-      AllocateRuntimePool (FixedPcdGet32(PcdVariableStoreSize));\r
+      AllocateRuntimePool (\r
+        2 * PcdGet32 (PcdFlashNvStorageFtwSpareSize)\r
+        );\r
   DEBUG ((EFI_D_INFO,\r
           "Reserved variable store memory: 0x%lX; size: %dkb\n",\r
           VariableStore,\r
-          FixedPcdGet32(PcdVariableStoreSize) / 1024\r
+          (2 * PcdGet32 (PcdFlashNvStorageFtwSpareSize)) / 1024\r
         ));\r
   PcdSet64 (PcdEmuVariableNvStoreReserved, VariableStore);\r
 }\r