search for: vm86_rep

Displaying 1 result from an estimated 1 matches for "vm86_rep".

Did you mean: vm86_real
2004 Jan 24
2
mmap and getpagesize
...ader files into klibc. The code I am working from calls INT 113 directly. It would probably be cleaner to do this through a library call that automatically called the x86 emulator on other architectures. I'm able to compile with klibc now. Next I need to make sure everything works. static int vm86_rep(struct vm86_struct *ptr) { int __res; __asm__ __volatile__("int $0x80\n":"=a"(__res):"a"((int) 113), "b"((struct vm86_struct *) ptr)); if ((__res) < 0) { errno = -__res; __res = -1; } else errno = 0; return __res; } ===== Jon Smirl jonsmirl...