From f7a700046605caaf49fe71b15afcf377cb932bd8 Mon Sep 17 00:00:00 2001 From: jsg Date: Wed, 16 Aug 2023 09:51:39 +0000 Subject: [PATCH] avoid bios sign msr on intel family < 6 the pentium msr list in the sdm does not include it --- sys/arch/i386/i386/machdep.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c index 7bbefdfcd6c..9ce08823da5 100644 --- a/sys/arch/i386/i386/machdep.c +++ b/sys/arch/i386/i386/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.667 2023/08/16 07:26:05 jsg Exp $ */ +/* $OpenBSD: machdep.c,v 1.668 2023/08/16 09:51:39 jsg Exp $ */ /* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */ /*- @@ -1866,7 +1866,8 @@ identifycpu(struct cpu_info *ci) if (strcmp(cpu_vendor, "AuthenticAMD") == 0 && ci->ci_family >= 0x0f) { level = rdmsr(MSR_PATCH_LEVEL); - } else if (strcmp(cpu_vendor, "GenuineIntel") == 0) { + } else if (strcmp(cpu_vendor, "GenuineIntel") == 0 && + ci->ci_family >= 6) { wrmsr(MSR_BIOS_SIGN, 0); CPUID(1, dummy, dummy, dummy, dummy); level = rdmsr(MSR_BIOS_SIGN) >> 32; -- 2.20.1