aboutsummaryrefslogtreecommitdiffstats
path: root/main/dev86/dev86-pic.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-01-19 19:03:48 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-01-19 19:03:48 +0000
commitbc0592bb8d2a9b0e708a27e51d1c2459f799a768 (patch)
treed2d8c2b2030316ac2efd206d753ea0dccfa9abd6 /main/dev86/dev86-pic.patch
parentd3f3bd4f6ea37496671436ba4510c701a5c5989f (diff)
downloadaports-bc0592bb8d2a9b0e708a27e51d1c2459f799a768.tar.bz2
aports-bc0592bb8d2a9b0e708a27e51d1c2459f799a768.tar.xz
main/dev86: moved from testing
Diffstat (limited to 'main/dev86/dev86-pic.patch')
-rw-r--r--main/dev86/dev86-pic.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/main/dev86/dev86-pic.patch b/main/dev86/dev86-pic.patch
new file mode 100644
index 0000000000..41076f3dae
--- /dev/null
+++ b/main/dev86/dev86-pic.patch
@@ -0,0 +1,20 @@
+--- ./elksemu/elks.c.orig 2005-11-04 01:35:37.000000000 +0100
++++ ./elksemu/elks.c 2005-11-04 01:45:28.000000000 +0100
+@@ -129,8 +129,17 @@
+ static inline int vm86_mine(struct vm86_struct* v86)
+ {
+ int __res;
++#ifndef __PIC__
+ __asm__ __volatile__("int $0x80\n"
+ :"=a" (__res):"a" ((int)OLD_SYS_vm86), "b" ((int)v86));
++#else
++ __asm__ __volatile__(
++ "movl %%ebx,%%ecx\n\t"
++ "movl %2,%%ebx\n\t"
++ "int $0x80\n\t"
++ "movl %%ecx,%%ebx\n\t"
++ :"=a" (__res):"a" ((int)OLD_SYS_vm86), "r" ((int)v86) : "ecx");
++#endif
+ return __res;
+ }
+ #endif