mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
gst/gstcpu.c: Fix problem when using
Original commit message from CVS: * gst/gstcpu.c: (gst_cpuid_i386): Fix problem when using -fomit-frame-pointer. Appears to generate correct code in other cases as well.
This commit is contained in:
parent
5c28fc6fce
commit
4a26e6f2c7
2 changed files with 10 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-06-14 David Schleef <ds@schleef.org>
|
||||
|
||||
* gst/gstcpu.c: (gst_cpuid_i386): Fix problem when using
|
||||
-fomit-frame-pointer. Appears to generate correct code in
|
||||
other cases as well.
|
||||
|
||||
2004-06-14 Johan Dahlin <johan@gnome.org>
|
||||
|
||||
* tools/gst-inspect.c (main): Add two new command line options: -a
|
||||
|
|
|
@ -72,11 +72,11 @@ gst_cpuid_i386 (int x, unsigned long *eax, unsigned long *ebx,
|
|||
asm (
|
||||
/* GCC-3.2 (and possibly others) don't clobber ebx properly,
|
||||
* so we save/restore it directly. */
|
||||
" pushl %%ebx\n" " cpuid\n" " movl %%eax, %0\n" " movl %%ebx, %1\n" " movl %%ecx, %2\n" " movl %%edx, %3\n" " popl %%ebx\n":"=o" (regs[0]),
|
||||
"=o" (regs[1]),
|
||||
"=o" (regs[2]), "=o" (regs[3])
|
||||
" movl %%ebx, %%esi\n" " cpuid\n" " movl %%eax, %0\n" " movl %%ebx, %1\n" " movl %%ecx, %2\n" " movl %%edx, %3\n" " movl %%esi, %%ebx\n":"=o" (regs[0]), "=o" (regs[1]), "=o" (regs[2]),
|
||||
"=o" (regs
|
||||
[3])
|
||||
: "a" (x)
|
||||
: "ecx", "edx");
|
||||
: "ecx", "edx", "esi");
|
||||
|
||||
*eax = regs[0];
|
||||
*ebx = regs[1];
|
||||
|
|
Loading…
Reference in a new issue