diff options
author | Star Zeng <star.zeng@intel.com> | 2015-02-02 09:31:08 +0000 |
---|---|---|
committer | lzeng14 <lzeng14@Edk2> | 2015-02-02 09:31:08 +0000 |
commit | 93626a53773246d3999446235dc826b92a249228 (patch) | |
tree | ab78b5807fada5d6e404d571b44928d68ddc9465 /SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableDxe.c | |
parent | 0fb5e515f2f338c25679e2129ef81c4d230649b9 (diff) | |
download | edk2-platforms-93626a53773246d3999446235dc826b92a249228.tar.xz |
SecurityPkg Variable: Introduce PcdReclaimVariableSpaceAtEndOfDxe
for trying to reclaim variable space at EndOfDxe.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16688 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableDxe.c')
-rw-r--r-- | SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableDxe.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableDxe.c b/SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableDxe.c index 375a604df2..05a90fa8fc 100644 --- a/SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableDxe.c +++ b/SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableDxe.c @@ -317,6 +317,9 @@ OnEndOfDxe ( // The initialization for variable quota.
//
InitializeVariableQuota ();
+ if (PcdGetBool (PcdReclaimVariableSpaceAtEndOfDxe)) {
+ ReclaimForOS ();
+ }
}
/**
|