commit | c12bfa0e723f5483cb74c10a3422423b3ceb405f | [log] [tgz] |
---|---|---|
author | Erik de Castro Lopo <erikd@mega-nerd.com> | Wed Jul 13 19:45:53 2016 +1000 |
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | Wed Jul 13 19:47:11 2016 +1000 |
tree | 0abd8315dd1ee792965dee44a23481d153ee4f6f | |
parent | 74e751c421dfc578449906af3afa70489e5fb50b [diff] |
libFLAC: Fix cpuid detecton on old Cyrix CPUs Some old CPUs (eg Cyrix) set EDX but not ECX when executing CPUID. One of the solutions is to clear ECX before calling cpuid. From https://bugzilla.mozilla.org/show_bug.cgi?id=1096651#c9 bug Patch-from: lvqcl <lvqcl.mail@gmail.com>
diff --git a/src/libFLAC/ia32/cpu_asm.nasm b/src/libFLAC/ia32/cpu_asm.nasm index 036e865..a6c4d86 100644 --- a/src/libFLAC/ia32/cpu_asm.nasm +++ b/src/libFLAC/ia32/cpu_asm.nasm
@@ -78,6 +78,7 @@ cpuid cmp eax, 1 jb .no_cpuid + xor ecx, ecx mov eax, 1 cpuid mov ebx, [esp + 8]