mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-17 18:41:22 +00:00
cr50: use new function to verify index presence
The new TPM API function works even before TPM Startup was executed,
this would allow CCD to read FWMP even if the AP does not boot up.
CQ-DEPEND=CL:1020725
BRANCH=cr50, cr50-mp
BUG=b:67009375
TEST=verified that FWMP can be read both before and after AP is
booted, and that missing FWMP is also processed properly in both
cases.
Change-Id: I4e57e6211fdb8fa3166f261aa861dba9bab433a1
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1020785
Reviewed-by: Andrey Pronin <apronin@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
a820df3fd6
commit
9439d0e121
@@ -19,12 +19,12 @@
|
||||
enum tpm_read_rv read_tpm_nvmem(uint16_t obj_index,
|
||||
uint16_t obj_size, void *obj_value)
|
||||
{
|
||||
TPMI_RH_NV_INDEX object_handle;
|
||||
TPM_HANDLE object_handle;
|
||||
NV_INDEX nvIndex;
|
||||
|
||||
object_handle = HR_NV_INDEX + obj_index;
|
||||
if (NvIndexIsAccessible(object_handle,
|
||||
TPM_CC_NV_Read) != TPM_RC_SUCCESS) {
|
||||
|
||||
if (!NvEarlyStageFindHandle(object_handle)) {
|
||||
CPRINTF("%s: object at 0x%x not found\n", __func__, obj_index);
|
||||
return tpm_read_not_found;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user