12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #include <assert.h>
- #include <string.h>
- #include <drivers/auth/auth_mod.h>
- #include <plat/common/platform.h>
- #if USE_TBBR_DEFS
- #include <tools_share/tbbr_oid.h>
- #else
- #include <platform_oid.h>
- #endif
- int plat_set_nv_ctr2(void *cookie, const auth_img_desc_t *img_desc,
- unsigned int nv_ctr)
- {
- int trusted_nv_ctr;
- assert(cookie != NULL);
- assert(img_desc != NULL);
- trusted_nv_ctr = strcmp(cookie, TRUSTED_FW_NVCOUNTER_OID) == 0;
-
- if (!trusted_nv_ctr || img_desc->parent == NULL)
- return plat_set_nv_ctr(cookie, nv_ctr);
-
- return 1;
- }
|