summaryrefslogtreecommitdiff
path: root/util/intelmetool/intelmetool.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/intelmetool/intelmetool.c')
-rw-r--r--util/intelmetool/intelmetool.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/util/intelmetool/intelmetool.c b/util/intelmetool/intelmetool.c
index 2e22899335..0b0e509bcc 100644
--- a/util/intelmetool/intelmetool.c
+++ b/util/intelmetool/intelmetool.c
@@ -308,9 +308,6 @@ static void dump_bootguard_info(void)
const char *name;
uint64_t bootguard = 0;
- if (msr_bootguard(&bootguard, debug) < 0)
- return;
-
if (pci_platform_scan())
exit(1);
@@ -328,9 +325,11 @@ static void dump_bootguard_info(void)
bootguard &= ~0xff;
}
- if (ME_major_ver < 9 ||
- (ME_major_ver == 9 && ME_minor_ver < 5) ||
- !BOOTGUARD_CAPABILITY(bootguard)) {
+ /* ME_major_ver is zero on some platforms (Mac) */
+ if (ME_major_ver &&
+ (ME_major_ver < 9 ||
+ (ME_major_ver == 9 && ME_minor_ver < 5) ||
+ !BOOTGUARD_CAPABILITY(bootguard))) {
print_cap("BootGuard ", 0);
printf(CGRN "\nYour system isn't bootguard ready. You can "
"flash other firmware!\n" RESET);
@@ -338,6 +337,12 @@ static void dump_bootguard_info(void)
return;
}
+ if (msr_bootguard(&bootguard, debug) < 0) {
+ printf("ME Capability: %-43s: " CCYN "%s\n" RESET,
+ "BootGuard Mode", "Unknown");
+ return;
+ }
+
print_cap("BootGuard ", 1);
if (pci_read_long(dev, 0x40) & 0x10)
printf(CYEL "Your southbridge configuration is insecure!! "