[SeaBIOS] [PATCH] tpm: Request access to locality 0
Stefan Berger
stefanb at linux.vnet.ibm.com
Wed Mar 28 21:37:44 CEST 2018
The CRB driver has to request access to locality 0. Our QEMU
CRB model will enforce that as well.
Signed-off-by: Stefan Berger <stefanb at linux.vnet.ibm.com>
---
src/hw/tpm_drivers.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/hw/tpm_drivers.c b/src/hw/tpm_drivers.c
index bd971f7..e4770b3 100644
--- a/src/hw/tpm_drivers.c
+++ b/src/hw/tpm_drivers.c
@@ -442,6 +442,8 @@ static u32 crb_activate(u8 locty)
if (!CONFIG_TCGBIOS)
return 0;
+ writeb(CRB_REG(locty, CRB_REG_LOC_CTRL), 1);
+
return 0;
}
--
2.5.5
More information about the SeaBIOS
mailing list