Update of /cvsroot/alsa/alsa-lib/src/pcm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23924

Modified Files:
        pcm_dmix_i386.h 
Log Message:
Don't use register ebx - it's GOT pointer for -fPIC libraries

Index: pcm_dmix_i386.h
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/src/pcm/pcm_dmix_i386.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- pcm_dmix_i386.h     24 Jan 2004 16:35:32 -0000      1.10
+++ pcm_dmix_i386.h     4 Feb 2004 08:25:19 -0000       1.11
@@ -45,6 +45,7 @@
        __asm__ __volatile__ (
                "\n"
 
+               "\tpush %%ebx\n"        /* ebx is GOT pointer (-fPIC) */
                /*
                 *  initialization, load ESI, EDI, EBX registers
                 */
@@ -134,13 +135,13 @@
                "\tjnz 4b\n"
                "\tdecl %0\n"
                "\tjnz 1b\n"
-               // "\tjmp 6f\n"
                
                "7:"
+               "\tpop %%ebx\n"         /* ebx is GOT pointer (-fPIC) */
 
                : /* no output regs */
                : "m" (size), "m" (dst), "m" (src), "m" (sum), "m" (dst_step), "m" 
(src_step), "m" (sum_step)
-               : "esi", "edi", "edx", "ecx", "ebx", "eax"
+               : "esi", "edi", "edx", "ecx", "eax"
        );
 }
 
@@ -163,6 +164,7 @@
        __asm__ __volatile__ (
                "\n"
 
+               "\tpush %%ebx\n"        /* ebx is GOT pointer (-fPIC) */
                /*
                 *  initialization, load ESI, EDI, EBX registers
                 */
@@ -219,10 +221,11 @@
                "\tdecl %0\n"
                "\tjnz 1b\n"
                "\temms\n"
+               "\tpop %%ebx\n"         /* ebx is GOT pointer (-fPIC) */
 
                : /* no output regs */
                : "m" (size), "m" (dst), "m" (src), "m" (sum), "m" (dst_step), "m" 
(src_step), "m" (sum_step)
-               : "esi", "edi", "edx", "ecx", "ebx", "eax"
+               : "esi", "edi", "edx", "ecx", "eax"
        );
 }
 
@@ -245,6 +248,7 @@
        __asm__ __volatile__ (
                "\n"
 
+               "\tpush %%ebx\n"        /* ebx is GOT pointer (-fPIC) */
                /*
                 *  initialization, load ESI, EDI, EBX registers
                 */
@@ -323,9 +327,10 @@
                "\tjmp 1b\n"
                
                "6:"
+               "\tpop %%ebx\n"         /* ebx is GOT pointer (-fPIC) */
+
                : /* no output regs */
                : "m" (size), "m" (dst), "m" (src), "m" (sum), "m" (dst_step), "m" 
(src_step), "m" (sum_step)
-               : "esi", "edi", "edx", "ecx", "ebx", "eax"
+               : "esi", "edi", "edx", "ecx", "eax"
        );
 }
-



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to