blob: 439c2648b7d2a98f10526bc4b42fcf0af3423fbc (
plain)
1 --- elksemu/elks.c.orig 2005-11-04 01:35:37.000000000 +0100
2 +++ elksemu/elks.c 2005-11-04 01:45:28.000000000 +0100
3 @@ -129,8 +129,17 @@
4 static inline int vm86_mine(struct vm86_struct* v86)
5 {
6 int __res;
7 +#ifndef __PIC__
8 __asm__ __volatile__("int $0x80\n"
9 :"=a" (__res):"a" ((int)OLD_SYS_vm86), "b" ((int)v86));
10 +#else
11 + __asm__ __volatile__(
12 + "movl %%ebx,%%ecx\n\t"
13 + "movl %2,%%ebx\n\t"
14 + "int $0x80\n\t"
15 + "movl %%ecx,%%ebx\n\t"
16 + :"=a" (__res):"a" ((int)OLD_SYS_vm86), "r" ((int)v86) : "ecx");
17 +#endif
18 return __res;
19 }
20 #endif
|