[vlc-commits] Add "ebx" to a clobber list

KO Myung-Hun git at videolan.org
Tue Oct 25 18:32:28 CEST 2011


vlc | branch: master | KO Myung-Hun <komh at chollian.net> | Tue Oct 25 12:32:07 2011 -0400| [b256537a9ca8b49bc1ee94a1162a7038eeeb14e2] | committer: Rafaël Carré

Add "ebx" to a clobber list

Signed-off-by: Rafaël Carré <funman at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b256537a9ca8b49bc1ee94a1162a7038eeeb14e2
---

 src/misc/cpu.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/misc/cpu.c b/src/misc/cpu.c
index 0b0673a..697cb4b 100644
--- a/src/misc/cpu.c
+++ b/src/misc/cpu.c
@@ -117,16 +117,14 @@ void vlc_CPU_init (void)
                          : "cc" );
 #   else
 #       define cpuid( reg )                    \
-            asm volatile ( "push %%ebx\n\t"    \
-                           "cpuid\n\t"         \
+            asm volatile ( "cpuid\n\t"         \
                            "movl %%ebx,%1\n\t" \
-                           "pop %%ebx\n\t"     \
                          : "=a" ( i_eax ),     \
                            "=r" ( i_ebx ),     \
                            "=c" ( i_ecx ),     \
                            "=d" ( i_edx )      \
                          : "a"  ( reg )        \
-                         : "cc" );
+                         : "cc", "ebx" );
 #   endif
      /* Check if the OS really supports the requested instructions */
 # if defined (__i386__) && !defined (__i486__) && !defined (__i586__) \



More information about the vlc-commits mailing list