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>
This commit is contained in:
Pablo Stebler
2020-09-18 10:32:22 +02:00
committed by Angel Pons
parent ca128a0eb4
commit 9ac91d220f
5 changed files with 71 additions and 64 deletions

View File

@ -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;
}