diff options
author | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2020-04-16 21:40:54 +0300 |
---|---|---|
committer | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2020-06-17 12:55:23 +0300 |
commit | a7a9e5c4c351416e50e193da46760e8e3d33cf39 (patch) | |
tree | df8281c4c91b4c504b6c3ee1d797e6f6d012f985 | |
parent | caf358d1dbc6a792e45333b9b533619f9d82bdef (diff) |
MdeModulePkg VariableStandaloneMm: ASdd patchable PCDsrpmb
Instead of running this in SPM, OP-TEE creates a new secure partition,
which emulates SPM and isolates StMM from the rest of the Trusted
Applications (TAs). We can then use compile StMM as an standalone
executable and run it in OP-TEE. With the addition of a new RPMB driver,
we can leverage OP-TEE and store variables to an RPMB device.
Since EDK2 upper layers expect byte addressable code, ifor the RPMB to
work, we need to allocate memory and sync it with the RPMB on read/writes.
Since DynamicPCDs are not supported in that context we can only use
PatchablePCDs.
Let's switch them to Pcd instead of FixedPcd and accomodate the new driver.
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
-rw-r--r-- | MdeModulePkg/Universal/Variable/RuntimeDxe/VariableStandaloneMm.inf | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableStandaloneMm.inf b/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableStandaloneMm.inf index 6e17f6cdf5..0f6530f1aa 100644 --- a/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableStandaloneMm.inf +++ b/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableStandaloneMm.inf @@ -115,10 +115,12 @@ ## SOMETIMES_PRODUCES ## Variable:L"VarErrorFlag"
gEdkiiVarErrorFlagGuid
-[FixedPcd]
- gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize ## CONSUMES
+[Pcd]
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase ## SOMETIMES_CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64 ## CONSUMES
+
+[FixedPcd]
+ gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize ## CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize ## CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize ## CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize ## CONSUMES
|