From f5dce7aa6e2ba6c5d389daf172be231bc4e583b4 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Sun, 16 Oct 2005 08:58:27 +0000 Subject: [PATCH] For AMD processors, nullify CPUID.HTT. FreeBSD has no need for the information it conveys, and it is only confusing people. This fixes incorrect output in the previous commit. --- sys/amd64/amd64/identcpu.c | 9 +++++++++ sys/i386/i386/identcpu.c | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/sys/amd64/amd64/identcpu.c b/sys/amd64/amd64/identcpu.c index 4e69a7d9d00..30cb2194ffd 100644 --- a/sys/amd64/amd64/identcpu.c +++ b/sys/amd64/amd64/identcpu.c @@ -334,6 +334,15 @@ printcpuinfo(void) ); } + if (cpu_feature & CPUID_HTT && strcmp(cpu_vendor, + "AuthenticAMD") == 0) { + cpu_feature &= ~CPUID_HTT; + if (bootverbose) + printf("\nHTT bit cleared - FreeBSD" + " does not have licenseing issues" + " requiring it.\n"); + } + /* * If this CPU supports HTT or CMP then mention the * number of physical/logical cores it contains. diff --git a/sys/i386/i386/identcpu.c b/sys/i386/i386/identcpu.c index 7d4ef863389..72cda286854 100644 --- a/sys/i386/i386/identcpu.c +++ b/sys/i386/i386/identcpu.c @@ -824,6 +824,15 @@ printcpuinfo(void) ); } + if (cpu_feature & CPUID_HTT && strcmp(cpu_vendor, + "AuthenticAMD") == 0) { + cpu_feature &= ~CPUID_HTT; + if (bootverbose) + printf("\nHTT bit cleared - FreeBSD" + " does not have licenseing issues" + " requiring it.\n"); + } + /* * If this CPU supports HTT or CMP then mention the * number of physical/logical cores it contains. -- 2.45.2