Convert hex print values to use the %#x qualifier to print 0x{value}. BUG=b:296439237 TEST=build and boot to Skyrim BRANCH=None Change-Id: I0d1ac4b920530635fb758c5165a6a99c11b414c8 Signed-off-by: Jon Murphy <jpmurphy@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/78183 Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
33 lines
647 B
C
33 lines
647 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#include <bootstate.h>
|
|
#include <console/console.h>
|
|
#include <security/tpm/tss.h>
|
|
#include <vb2_api.h>
|
|
|
|
static void disable_platform_hierarchy(void *unused)
|
|
{
|
|
int rc;
|
|
|
|
if (!CONFIG(TPM2))
|
|
return;
|
|
|
|
if (!CONFIG(RESUME_PATH_SAME_AS_BOOT))
|
|
return;
|
|
|
|
rc = tlcl_lib_init();
|
|
|
|
if (rc != VB2_SUCCESS) {
|
|
printk(BIOS_ERR, "tlcl_lib_init() failed: %#x\n", rc);
|
|
return;
|
|
}
|
|
|
|
rc = tlcl_disable_platform_hierarchy();
|
|
if (rc != TPM_SUCCESS)
|
|
printk(BIOS_ERR, "Platform hierarchy disablement failed: %#x\n",
|
|
rc);
|
|
}
|
|
|
|
BOOT_STATE_INIT_ENTRY(BS_OS_RESUME, BS_ON_ENTRY, disable_platform_hierarchy,
|
|
NULL);
|