diff options
author | Robert Mustacchi <rm@joyent.com> | 2019-05-05 16:26:23 +0000 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2019-05-07 16:19:45 +0000 |
commit | 1567de9ca59165ba548c38fbf32486335b19e58a (patch) | |
tree | 408f4b2ad2c45d9e7acf1a187ee108324fab7757 | |
parent | 36cd0120fa89646b118d72849008f5e786f0e30a (diff) | |
download | illumos-joyent-1567de9ca59165ba548c38fbf32486335b19e58a.tar.gz |
10920 lzcnt feature not properly identified on Intel systems
Reviewed by: Garrett D'Amore <garrett@damore.org>
Reviewed by: Toomas Soome <tsoome@me.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
-rw-r--r-- | usr/src/uts/i86pc/os/cpuid.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/src/uts/i86pc/os/cpuid.c b/usr/src/uts/i86pc/os/cpuid.c index 578dd3c06c..f0d6890daa 100644 --- a/usr/src/uts/i86pc/os/cpuid.c +++ b/usr/src/uts/i86pc/os/cpuid.c @@ -4488,6 +4488,8 @@ cpuid_pass4(cpu_t *cpu, uint_t *hwcap_out) case X86_VENDOR_Intel: if (*edx & CPUID_AMD_EDX_TSCP) hwcap_flags |= AV_386_TSCP; + if (*ecx & CPUID_AMD_ECX_LZCNT) + hwcap_flags |= AV_386_AMD_LZCNT; /* * Aarrgh. * Intel uses a different bit in the same word. |