|
|
static inline int vm86_mine(struct vm86_struct* v86) | static inline int vm86_mine(struct vm86_struct* v86) |
{ | { |
int __res; | int __res; |
|
#ifndef __PIC__ |
__asm__ __volatile__("int $0x80\n" | __asm__ __volatile__("int $0x80\n" |
:"=a" (__res):"a" ((int)OLD_SYS_vm86), "b" ((int)v86)); | :"=a" (__res):"a" ((int)OLD_SYS_vm86), "b" ((int)v86)); |
|
#else |
|
__asm__ __volatile__("pushl %%ebx\nmovl %2,%%ebx\nint $0x80\npopl %%ebx\n" |
|
:"=a" (__res):"a" ((int)OLD_SYS_vm86), "r" ((int)v86)); |
|
#endif |
return __res; | return __res; |
} | } |
#endif | #endif |