i386_vm86
—
vm86 ?˴?Ϣ?????ؿ??????椹??
Standard C Library (libc, -lc)
i386_vm86
() ?????ƥॳ?????? vm86
?˴?Ϣ???뤵?ޤ??ޤʴؿ????ƤӽФ??Τ˻??Ѥ??ޤ???
function ?????ϼ????ͤ????? 1
?ĤˤǤ??ޤ???
VM86_INIT
- ?????ͥ??Υץ??????? vm86
?ѥ?????ΰ??????????????ץ??????? vm86
?ƤӽФ??? ?Ǥ????褦?ˤ??ޤ???
data
?????ϼ??ι?¤?Τ??ؤ??ޤ???
struct vm86_init_args {
int debug;
int cpu_type;
u_char int_map[32];
};
debug
?????ϥǥХå??????ɤ??ˤ??뤿???˻??Ѥ????ޤ???
cpu_type
?????ϥ??ߥ??졼?????Υ????פ? CPU
?????椹?????ΤǤ?????
???????Ǥϼ????????Ƥ??ޤ?????
int_map ?????ϡ?vm86 ???????ߤ? vm86
?⡼?ɤǽ???????ɬ?פ????뤫???ޤ??ϥץ???????
ȿ?Ǥ????ᤵ????ɬ?פ????뤫?ɤ????????ꤹ???ӥåȥޥåפǤ???
N ?֤?
?ΥӥåȤ????ꤵ???Ƥ??????硢???????ߤϥץ???????ȿ?Ǥ????ޤ???
?????Ǥʤ????硢 vm86
???????ߥơ??֥??ˤ??äƥǥ????ѥå??????ޤ???
VM86_INTCALL
- ?ץ??????? vm86
???????ߥϥ??ɥ????ƤӽФ????褦?ˤ??ޤ???
?????ϸ???Ū?? INT
̿???ߥ??졼?Ȥ??ޤ???
data
?ϲ????ι?¤?Τ??ؤ??????Ƥ????٤??Ǥ?:
struct vm86_intcall_args {
int intnum;
struct vm86frame vmf;
};
intnum
?ϥ??ߥ??졼?Ȥ??줿?ƤӽФ??Τ?????
INT ?Υ??ڥ????ɤ????ꤷ?ޤ???
?㤨?С??? 0x10 ?? VGA BIOS
?ؤθƤӽФ??Τ????ˤ褯???Ѥ????ޤ???
vmf
?ϳ??????ߥϥ??ɥ??Τ????θƤӽФ??????˽??äơ?CPU
?Υ쥸??????
?????????뤿???˻??Ѥ????ޤ???
VM86_GET_VME
- Pentium(r) ?ץ????å??? VME (???? 8086
?⡼?ɳ?ĥ) ?ե饰 ?Ǥ??? CR4 ??
?ӥå? 0
?θ??ߤξ??֤??????Ф??????˻??Ѥ????ޤ???
data
?ϲ??????ؤ??????褦?˽????????????٤??Ǥ?:
struct vm86_vme_args {
int state; /* ???? */
};
state ?????????? VME
?ե饰?ξ??֤??????ޤ???
vm86 ?⡼?ɤ??????ˤϡ?vm86
?Ѥ??????????ꤷ???ޥ????ƥ????ȡ???????
PSL_VM
?ӥåȤ????ꤷ??
sigreturn(2)
???ƤӽФ??ޤ???
?????ʥ????ۿ????????椬?ץ????????????ޤ???
The i386_vm86
() function returns the value 0 if
successful; otherwise the value -1 is returned and the global variable
errno is set to indicate the error.
i386_vm86
()
?????ƥॳ?????ϼ??ξ????˼??Ԥ??ޤ?:
- [
EINVAL
]
- ?????ͥ??? vm86
???ݡ??Ȥ??ʤ??????ޤ???̵???ʴؿ??????ꤵ???ޤ?????
- [
ENOMEM
]
- ?????ͥ??ǡ?????¤?Τ????????????Τ˽?ʬ?ʥ????꤬?????ޤ?????
???Υޥ˥奢???ڡ????? Jonathan
Lemon ???? Bruce M Simpson
?????????ޤ?????