summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/2lib/2stub.c4
-rw-r--r--firmware/2lib/include/2return_codes.h6
2 files changed, 8 insertions, 2 deletions
diff --git a/firmware/2lib/2stub.c b/firmware/2lib/2stub.c
index a544a4fb..7c9e5b17 100644
--- a/firmware/2lib/2stub.c
+++ b/firmware/2lib/2stub.c
@@ -10,7 +10,7 @@
int vb2ex_tpm_clear_owner(struct vb2_context *ctx)
{
- return VB2_SUCCESS;
+ return VB2_ERROR_EX_TPM_CLEAR_OWNER_UNIMPLEMENTED;
}
int vb2ex_read_resource(struct vb2_context *ctx,
@@ -19,5 +19,5 @@ int vb2ex_read_resource(struct vb2_context *ctx,
void *buf,
uint32_t size)
{
- return VB2_SUCCESS;
+ return VB2_ERROR_EX_READ_RESOURCE_UNIMPLEMENTED;
}
diff --git a/firmware/2lib/include/2return_codes.h b/firmware/2lib/include/2return_codes.h
index fb00936c..77d0dd89 100644
--- a/firmware/2lib/include/2return_codes.h
+++ b/firmware/2lib/include/2return_codes.h
@@ -336,6 +336,9 @@ enum vb2_return_code {
*/
VB2_ERROR_EX = VB2_ERROR_BASE + 0x0a0000,
+ /* Read resource not implemented */
+ VB2_ERROR_EX_READ_RESOURCE_UNIMPLEMENTED,
+
/* Resource index not found */
VB2_ERROR_EX_READ_RESOURCE_INDEX,
@@ -345,6 +348,9 @@ enum vb2_return_code {
/* TPM clear owner failed */
VB2_ERROR_EX_TPM_CLEAR_OWNER,
+ /* TPM clear owner not implemented */
+ VB2_ERROR_EX_TPM_CLEAR_OWNER_UNIMPLEMENTED,
+
/**********************************************************************
* Highest non-zero error generated inside vboot library. Note that
* error codes passed through vboot when it calls external APIs may