$NetBSD: patch-ai,v 1.4 2006/05/09 08:01:07 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 */
