|
̾??i386_get_ldt , i386_set_ldt
—
i386
?ץ????????ȤΥ??????뵭?һҥơ??֥륨???ȥ???????????
?饤?֥???Standard C Library (libc, -lc)????<machine/segments.h>
<machine/sysarch.h>
int
i386_get_ldt (int start_sel,
union descriptor *descs, int
num_sels) int
i386_set_ldt (int start_sel,
union descriptor *descs, int
num_sels)
????i386_get_ldt ()
?????ƥॳ?????ϥץ??????? LDT ?????ˤ??? i386
???һҤΥꥹ?Ȥ??֤??ޤ???
i386_set_ldt ()
?????ƥॳ?????ϸ??ߤΥץ??????Τ?????
i386 ???һҤΥꥹ?Ȥ???
???Υץ??????? LDT ?????ꤷ?ޤ???
ξ???Υ롼?????ϡ????Ϥ??륻?쥯???ֹ???
start_sel
?ȡ????ꤹ?뵭?һҤ????ä????ޤ??ϵ??һҤ??֤???????????????????
descs
???????????ޤ????֤????륨???ȥ?????
num_sels ???????????ޤ???
???? descs ?ϡ?
start_sel ??
LDT_AUTO_ALLOC ?ǡ? num_sels
?? 1 ?ǡ? descs
?ˤ??äƻؤ????뵭?һҤ??????Ǥ????????ˤϡ?
num_descs ?? 1 ?ǡ?
start_sels ??ͭ???ǡ?
descs ?? NULL ?ξ????ˤϡ?
num_descs ?? 0 ?ǡ?
start_sels ?? 0 ?ǡ? descs
?? NULL ?ξ????ˤ????̤ʾ????Ȥ??ơ?
???????????˴?λ???????硢i386_get_ldt ()
?ϸ??? LDT
???ˤ??뵭?һҤο????֤??ޤ???
i386_set_ldt ()
?????ƥॳ?????Ϻǽ??Υ??쥯?????åȤ??֤??ޤ???
???һҤ??????ͥ??ˤ??äƳ??????Ƥ??줿?????ˤϡ????ο????֤????ޤ???
?????Ǥʤ??????? -1
???֤??졢???顼???????˥??????Х??ѿ?
errno ?????ꤵ???ޤ???
???顼i386_get_ldt () ?? i386_set_ldt ()
?????ƥॳ?????ϼ??ξ????˼??Ԥ??ޤ?:
??Ϣ????i386 Microprocessor Programmer's Reference Manual, Intel?ٹ??????????Ѥ??ƥץ????????ޤä????????ˤ??뤳?Ȥ??Ǥ??ޤ???
Visit the GSP FreeBSD Man Page Interface. |