mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
21 lines
745 B
Plaintext
21 lines
745 B
Plaintext
$NetBSD: patch-ai,v 1.5 2007/02/23 03:27:41 rillig Exp $
|
|
|
|
--- lib-src/soundtouch/source/SoundTouch/cpu_detect_x86_gcc.cpp.orig 2006-11-15 05:12:11.000000000 +0100
|
|
+++ lib-src/soundtouch/source/SoundTouch/cpu_detect_x86_gcc.cpp 2007-02-23 03:25:18.000000000 +0100
|
|
@@ -80,6 +80,7 @@ uint detectCPUextensions(void)
|
|
if (_dwDisabledISA == 0xffffffff) return 0;
|
|
|
|
asm volatile(
|
|
+ "\n\tpushl %%ebx"
|
|
"\n\txor %%esi, %%esi" // clear %%esi = result register
|
|
// check if 'cpuid' instructions is available by toggling eflags bit 21
|
|
|
|
@@ -128,6 +129,7 @@ uint detectCPUextensions(void)
|
|
"\n\tend:"
|
|
|
|
"\n\tmov %%esi, %0"
|
|
+ "\n\tpopl %%ebx"
|
|
|
|
: "=r" (res)
|
|
: /* no inputs */
|