sys_vm86old  [arch/i386/kernel/vm86.c]


Used to cause the process to enter VM86 mode (virtual-8086 in Intel literature). This system call is used by dosemu for example.

VM86 mode is an emulation of real mode within a protected mode task.

Arguments

eax 113
ebx Pointer to a properly initialized vm86_struct structure:
struc vm86_struct
{
.regs             vm86_regs
.flags            rd 1
.screen_bitmap    rd 1
.cpu_type         rd 1
.int_revectored   revectored_struct
.int21_revectored revectored_struct
}

Return values

If the system call succeeds the return value is 0. *to be verified*
If the system call fails the return value is one of the following errno values:

-EFAULT This return value indicates a problem with getting userspace data.
-EPERM Saved kernel stack exists. (This is a kernel sanity check; the saved stack should only exist within vm86 mode itself.)

Remarks

n/a

Compatibility

n/a