summaryrefslogtreecommitdiff
path: root/test/nvmem.c
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2018-12-04 13:37:06 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-12-06 22:06:26 -0800
commit4dd1ecfe74fb4ec81652a9376fc2c5603400ec29 (patch)
tree0899b34ea8da3e1361cf10c36b3150d1adfe4dba /test/nvmem.c
parenta45e42da1a5c16a94d4d02531802f87061b8891c (diff)
downloadchrome-ec-4dd1ecfe74fb4ec81652a9376fc2c5603400ec29.tar.gz
cr50: clear TPM NVMEM cache when entering Alt OS
Each time TPM is disabled for booting Alt OS, NVMEM cache needs to be wiped out, only a few NV indices need to be preserved. We also are making sure that wipeout is possible only if key ladder is disabled. CQ-DEPEND=CL:1362161 BRANCH=cr50, cr50-mp BUG=b:119221935 TEST=on a dual boot machine observed that when booting ALT OS on reboots, key ladder is disabled, but RW AP firmware rollback indices at address 0x1007 are still read properly. Alt OS resume happens pretty quickly. Change-Id: I5326937d0a36b67ac848629faeee42aadcb9e64d Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1362203 Reviewed-by: Andrey Pronin <apronin@chromium.org>
Diffstat (limited to 'test/nvmem.c')
-rw-r--r--test/nvmem.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/nvmem.c b/test/nvmem.c
index 8ce978d750..99b2d554e9 100644
--- a/test/nvmem.c
+++ b/test/nvmem.c
@@ -696,6 +696,10 @@ static void run_test_setup(void)
test_reset();
}
+void nvmem_wipe_cache(void)
+{
+}
+
int DCRYPTO_ladder_is_enabled(void)
{
return 1;