diff options
author | gtian <gtian@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-11-05 16:11:50 +0000 |
---|---|---|
committer | gtian <gtian@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-11-05 16:11:50 +0000 |
commit | 518d395c3bee7dd36ae372171ea403cabfe73bfd (patch) | |
tree | 24e5d781b56c54ccf8fe72ecf503fee847dce89a /MdeModulePkg/Universal/Variable/EmuRuntimeDxe/Variable.h | |
parent | a4c9ede55fdd3de2c9138f45c4e1ca42947ed549 (diff) | |
download | edk2-platforms-518d395c3bee7dd36ae372171ea403cabfe73bfd.tar.xz |
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
Diffstat (limited to 'MdeModulePkg/Universal/Variable/EmuRuntimeDxe/Variable.h')
-rw-r--r-- | MdeModulePkg/Universal/Variable/EmuRuntimeDxe/Variable.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/Variable.h b/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/Variable.h index 696065ae75..af6ed2d255 100644 --- a/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/Variable.h +++ b/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/Variable.h @@ -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
|