Skip to content

Commit

Permalink
10920 lzcnt feature not properly identified on Intel systems
Browse files Browse the repository at this point in the history
Reviewed by: Garrett D'Amore <garrett@damore.org>
Reviewed by: Toomas Soome <tsoome@me.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
  • Loading branch information
rmustacc committed May 7, 2019
1 parent 36cd012 commit 1567de9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions usr/src/uts/i86pc/os/cpuid.c
Expand Up @@ -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.
Expand Down

0 comments on commit 1567de9

Please sign in to comment.