summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-01-13 01:13:06 +0000
committerMike Frysinger <vapier@gentoo.org>2005-01-13 01:13:06 +0000
commite9d93f15ec6f7440e1a692b157a8075739f5f84b (patch)
tree641acbae48ea7fc5693db86e10208cc62d190471 /dev-games/ode
parentVersion bump #77655 by Dennis Schridde. (Manifest recommit) (diff)
downloadgentoo-2-e9d93f15ec6f7440e1a692b157a8075739f5f84b.tar.gz
gentoo-2-e9d93f15ec6f7440e1a692b157a8075739f5f84b.tar.bz2
gentoo-2-e9d93f15ec6f7440e1a692b157a8075739f5f84b.zip
only use my asm code on x86 #77706
Diffstat (limited to 'dev-games/ode')
-rw-r--r--dev-games/ode/files/0.5-PIC.patch14
1 files changed, 8 insertions, 6 deletions
diff --git a/dev-games/ode/files/0.5-PIC.patch b/dev-games/ode/files/0.5-PIC.patch
index b4fb9aaaa692..8255d34f2cc1 100644
--- a/dev-games/ode/files/0.5-PIC.patch
+++ b/dev-games/ode/files/0.5-PIC.patch
@@ -4,15 +4,17 @@ http://bugs.gentoo.org/show_bug.cgi?id=77079
--- ode-0.5/ode/src/timer.cpp.orig 2005-01-08 00:42:12.799324632 -0500
+++ ode-0.5/ode/src/timer.cpp 2005-01-08 00:42:38.347440728 -0500
-@@ -118,8 +118,10 @@
+@@ -118,6 +118,13 @@
{
asm volatile (
- "mov $0,%%eax\n"
++#if defined(__i386__) && defined(__PIC__)
+ "pushl %%ebx\n"
- "cpuid\n"
-- : : : "%eax","%ebx","%ecx","%edx","cc","memory");
++ "cpuid\n"
+ "popl %%ebx\n"
+ : : : "%eax","%ecx","%edx","cc","memory");
++#else
+ "mov $0,%%eax\n"
+ "cpuid\n"
+ : : : "%eax","%ebx","%ecx","%edx","cc","memory");
++#endif
}
-
-