i386_vm86 - control vm86-related functions
Lb libc
struct vm86_init_args { int debug; int cpu_type; u_char int_map[32]; };
The Fa debug argument is used to turn on debugging code. The Fa cpu_type argument controls the type of CPU being emulated, and is currently unimplemented. The Fa int_map argument is a bitmap which determines whether vm86 interrupts should be handled in vm86 mode, or reflected back to the process. If the Nth bit is set, the interrupt will be reflected to the process, otherwise it will be dispatched by the vm86 interrupt table.
struct vm86_intcall_args { int intnum; struct vm86frame vmf; };
Fa intnum specifies the operand of INT for the simulated call. A value of 0x10, for example, would often be used to call into the VGA BIOS. Fa vmf is used to initialize CPU registers according to the calling convention for the interrupt handler.
struct vm86_vme_args { int state; /* status */ };
Fa state will contain the state of the VME flag on return.
vm86 mode is entered by calling sigreturn(2) with the correct machine context for vm86, and with the PSL_VM bit set. Control returns to the process upon delivery of a signal.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |