summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-10-22 05:41:05 +0000
committerMike Frysinger <vapier@gentoo.org>2005-10-22 05:41:05 +0000
commitfed1eba6f20c380556ed39eb46c39ec9f4c1bdb2 (patch)
tree4093e4f642ee8d4fee2b39e9caa519c808db9dcd /games-emulation/ps2emu-gssoft
parentlibdir fix and adding credit for Bret Towe, bug 109410 (diff)
downloadgentoo-2-fed1eba6f20c380556ed39eb46c39ec9f4c1bdb2.tar.gz
gentoo-2-fed1eba6f20c380556ed39eb46c39ec9f4c1bdb2.tar.bz2
gentoo-2-fed1eba6f20c380556ed39eb46c39ec9f4c1bdb2.zip
use edi rather than stack space to hide ebx PIC register #103964
(Portage version: 2.0.53_rc6)
Diffstat (limited to 'games-emulation/ps2emu-gssoft')
-rw-r--r--games-emulation/ps2emu-gssoft/files/ps2emu-gssoft-0.9-PIC.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/games-emulation/ps2emu-gssoft/files/ps2emu-gssoft-0.9-PIC.patch b/games-emulation/ps2emu-gssoft/files/ps2emu-gssoft-0.9-PIC.patch
index 91b747e8fb80..56f16f57a328 100644
--- a/games-emulation/ps2emu-gssoft/files/ps2emu-gssoft-0.9-PIC.patch
+++ b/games-emulation/ps2emu-gssoft/files/ps2emu-gssoft-0.9-PIC.patch
@@ -5,19 +5,19 @@ http://bugs.gentoo.org/101627
}
__asm__ __volatile__ (
-+ "push %%ebx\n"
++ "mov %%ebx, %%edi\n"
"mov %4, %%eax\n"
"cpuid\n"
"mov %%eax, %0\n"
"mov %%ebx, %1\n"
"mov %%ecx, %2\n"
"mov %%edx, %3\n"
-+ "pop %%ebx\n"
++ "mov %%edi, %%ebx\n"
: "=m" (regs[0]), "=m" (regs[1]),
"=m" (regs[2]), "=m" (regs[3])
: "m"(cmd)
- : "eax", "ebx", "ecx", "edx"
-+ : "eax", "ecx", "edx"
++ : "eax", "ecx", "edx", "edi"
);
return 0;