]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - dev86/patches/01-dev86-pic.patch
ec5d706329cf97392c39aeddff22fa32979a8cb5
[people/amarx/ipfire-3.x.git] / dev86 / patches / 01-dev86-pic.patch
1 --- dev86-0.16.18/elksemu/elks.c.orig 2005-11-04 01:35:37.000000000 +0100
2 +++ dev86-0.16.18/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