| 1 | |
| 2 | |
| 3 | |
| 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 |