summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-video/SDLcam/files/SDLcam-0.7.3-tsc.patch')
-rw-r--r--media-video/SDLcam/files/SDLcam-0.7.3-tsc.patch51
1 files changed, 0 insertions, 51 deletions
diff --git a/media-video/SDLcam/files/SDLcam-0.7.3-tsc.patch b/media-video/SDLcam/files/SDLcam-0.7.3-tsc.patch
deleted file mode 100644
index 807667b22a5d..000000000000
--- a/media-video/SDLcam/files/SDLcam-0.7.3-tsc.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-Patch by Tobias Klausmann to fix TSC issues on Pentium M's
-
-http://bugs.gentoo.org/109161
-
---- misc.c
-+++ misc.c
-@@ -25,6 +25,11 @@
- #include "dyn_misc.h"
- #include "misc.h"
-
-+#define rdtsc(low,high) \
-+ __asm__ __volatile__("rdtsc" : "=a" (low), "=d" (high))
-+
-+
-+
- char *xStrdup (const char *t) {{{
- char *ret;
- ret = strdup (t);
-@@ -42,18 +47,9 @@
-
- void getTimeStampCounter ( TimeStampCounter *t ) {{{
- #ifdef TIMER
-- unsigned int h=t->high;
-- unsigned int l=t->low ;
-- asm (
-- "push %%eax \n"
-- "push %%edx \n"
-- "rdtsc \n"
-- "movl %%eax,%1 \n"
-- "movl %%edx,%0 \n"
-- "pop %%edx \n"
-- "pop %%edx \n"
-- : "=m" (h) , "=m" (l)
-- );
-+ unsigned long h=t->high;
-+ unsigned long l=t->low ;
-+ rdtsc(l,h);
- t->high = h;
- t->low = l;
- #else
---- misc.h.orig 2005-10-08 13:52:05.000000000 +0200
-+++ misc.h 2005-10-08 13:52:18.000000000 +0200
-@@ -24,7 +24,7 @@
-
- char *xStrdup (const char *t);
-
--typedef struct { unsigned int high, low; } TimeStampCounter;
-+typedef struct { unsigned long high, low; } TimeStampCounter;
- void getTimeStampCounter ( TimeStampCounter *t );
- void Start_Timer (unsigned int idx);
- void Ende_Timer (unsigned int idx);