From 433f2cfb437e189a5114338c70967815a6d9d02a Mon Sep 17 00:00:00 2001 From: Sampo Savolainen Date: Sat, 27 Jan 2007 22:15:16 +0000 Subject: [PATCH] Fix PIC issue with soundtouch git-svn-id: svn://localhost/ardour2/trunk@1394 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/soundtouch/cpu_detect_x86_gcc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/soundtouch/cpu_detect_x86_gcc.cpp b/libs/soundtouch/cpu_detect_x86_gcc.cpp index b4ccdc2834..b58b80fa06 100644 --- a/libs/soundtouch/cpu_detect_x86_gcc.cpp +++ b/libs/soundtouch/cpu_detect_x86_gcc.cpp @@ -80,6 +80,7 @@ uint detectCPUextensions(void) if (_dwDisabledISA == 0xffffffff) return 0; asm volatile( + "\n\tpushl %%ebx" // store 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 */