diff options
author | Andrew Manison <amanison@anselsystems.com> | 2011-12-17 18:31:22 +0000 |
---|---|---|
committer | Andrew Manison <amanison@anselsystems.com> | 2011-12-17 18:31:22 +0000 |
commit | a9fef479eb56b8bc7f984e3998c6bdc55ed340ed (patch) | |
tree | 90b9ed0ddcde1c2a2fd6cfca212c376170b375f9 /testing/dev86/dev86-pic.patch | |
parent | 2c4bbae51bb79c8492e2701a2085bf060abc5248 (diff) | |
parent | 703b9580ec2d7a0f919b63cd409a526933a8eaab (diff) | |
download | aports-a9fef479eb56b8bc7f984e3998c6bdc55ed340ed.tar.bz2 aports-a9fef479eb56b8bc7f984e3998c6bdc55ed340ed.tar.xz |
Merge remote-tracking branch 'alpine/master'
Diffstat (limited to 'testing/dev86/dev86-pic.patch')
-rw-r--r-- | testing/dev86/dev86-pic.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/dev86/dev86-pic.patch b/testing/dev86/dev86-pic.patch new file mode 100644 index 000000000..41076f3da --- /dev/null +++ b/testing/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 |