Fix PIC issue with soundtouch

git-svn-id: svn://localhost/ardour2/trunk@1394 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Sampo Savolainen 2007-01-27 22:15:16 +00:00
parent 17033c4448
commit 433f2cfb43
1 changed files with 2 additions and 0 deletions

View File

@ -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 */