define the variable related to PCD for supporting big variable (>32K) easily.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4268 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -57,6 +57,11 @@
|
||||
gEfiVariableArchProtocolGuid # PROTOCOL ALWAYS_PRODUCED
|
||||
gEfiVariableWriteArchProtocolGuid # PROTOCOL ALWAYS_PRODUCED
|
||||
|
||||
[Pcd.common]
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize
|
||||
|
||||
[Depex]
|
||||
TRUE
|
||||
|
||||
|
@@ -37,10 +37,11 @@ Abstract:
|
||||
#include <Library/UefiBootServicesTableLib.h>
|
||||
#include <Library/UefiLib.h>
|
||||
#include <Library/BaseLib.h>
|
||||
#include <Library/PcdLib.h>
|
||||
#include <VariableFormat.h>
|
||||
|
||||
#define VARIABLE_STORE_SIZE (64 * 1024)
|
||||
#define SCRATCH_SIZE (4 * 1024)
|
||||
#define VARIABLE_STORE_SIZE FixedPcdGet32(PcdVariableStoreSize)
|
||||
#define SCRATCH_SIZE FixedPcdGet32(PcdMaxVariableSize)
|
||||
|
||||
//
|
||||
// Define GET_PAD_SIZE to optimize compiler
|
||||
|
@@ -64,6 +64,7 @@
|
||||
|
||||
[Pcd.common]
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize
|
||||
|
||||
[Depex]
|
||||
TRUE
|
||||
|
@@ -45,8 +45,8 @@ Abstract:
|
||||
|
||||
#define VARIABLE_RECLAIM_THRESHOLD (1024)
|
||||
|
||||
#define VARIABLE_STORE_SIZE (64 * 1024)
|
||||
#define SCRATCH_SIZE (4 * 1024)
|
||||
#define VARIABLE_STORE_SIZE FixedPcdGet32(PcdVariableStoreSize)
|
||||
#define SCRATCH_SIZE FixedPcdGet32(PcdMaxVariableSize)
|
||||
|
||||
//
|
||||
// Define GET_PAD_SIZE to optimize compiler
|
||||
|
@@ -69,6 +69,9 @@
|
||||
[Pcd.common]
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize
|
||||
|
||||
[FeaturePcd.common]
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics
|
||||
|
Reference in New Issue
Block a user