diff --git a/src/include/console/post_codes.h b/src/include/console/post_codes.h index 0310db3958..9f9b7886a6 100644 --- a/src/include/console/post_codes.h +++ b/src/include/console/post_codes.h @@ -219,6 +219,13 @@ */ #define POST_JUMPING_TO_PAYLOAD 0xf3 +/** + * \brief TPM failure + * + * An error with the TPM, either unexepcted state or communications failure. + */ +#define POST_TPM_FAILURE 0xed + /** * \brief Not supposed to get here * diff --git a/src/vendorcode/google/chromeos/vboot.c b/src/vendorcode/google/chromeos/vboot.c index e42961ff47..44fe9e3025 100644 --- a/src/vendorcode/google/chromeos/vboot.c +++ b/src/vendorcode/google/chromeos/vboot.c @@ -233,6 +233,7 @@ static void init_vboot(int bootmode) #if !MOCK_TPM printk(BIOS_ERR, "TPM: Error code 0x%x. Hard reset!\n", result); + post_code(POST_TPM_FAILURE); hard_reset(); #endif }