aboutsummaryrefslogtreecommitdiff
path: root/util/intelmetool/msr.c
diff options
context:
space:
mode:
authorPablo Stebler <pablo@stebler.xyz>2020-09-18 10:32:22 +0200
committerAngel Pons <th3fanbus@gmail.com>2020-09-23 20:58:28 +0000
commit9ac91d220f18377825aac8889e99b2cf078e4afc (patch)
treef8449ee6a4bbaaabba80577ab682046b320367f6 /util/intelmetool/msr.c
parentca128a0eb42dfc41c80aef9659dae06274dd65b3 (diff)
util/intelmetool: Fix the BootGuard dump feature
Read the correct bits for measured and verified boot, print information about some other bits. Signed-off-by: Pablo Stebler <pablo@stebler.xyz> Change-Id: Ie79d6da33032aee94d716bf0698b5501bbc424fa Reviewed-on: https://review.coreboot.org/c/coreboot/+/45516 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'util/intelmetool/msr.c')
-rw-r--r--util/intelmetool/msr.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/util/intelmetool/msr.c b/util/intelmetool/msr.c
index 263a8202bb..1a5ead9737 100644
--- a/util/intelmetool/msr.c
+++ b/util/intelmetool/msr.c
@@ -39,7 +39,7 @@ static int rdmsr(int addr, uint64_t *msr)
}
#endif
-int msr_bootguard(uint64_t *msr, int debug)
+int msr_bootguard(uint64_t *msr)
{
#ifndef __DARWIN__
@@ -54,8 +54,5 @@ int msr_bootguard(uint64_t *msr, int debug)
return -1;
#endif
- if (!debug)
- *msr &= ~0xff;
-
return 0;
}