青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

<2025年12月>
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

統(tǒng)計(jì)

  • 隨筆 - 21
  • 文章 - 0
  • 評論 - 2
  • 引用 - 0

常用鏈接

留言簿

隨筆分類

隨筆檔案

搜索

  •  

最新評論

閱讀排行榜

評論排行榜

第二章 系統(tǒng)架構(gòu)瀏覽2.2-2.4小節(jié)

2.2 MODES OF OPERATION 操作的模式

The IA-32 supports three operating modes and one quasi-operating mode:

IA32支持下面的三種操作模式和一種類似的模式

Protected mode — This is the native operating mode of the processor. It

provides a rich set of architectural features, flexibility, high performance and

backward compatibility to existing software base.

保護(hù)模式:處理器本身擁有的模式。該模式提供了一個關(guān)于架構(gòu)特性,系統(tǒng)彈性,高速運(yùn)行以及向后兼容現(xiàn)有軟件的豐富集合。

 

Real-address mode — This operating mode provides the programming

environment of the Intel 8086 processor, with a few extensions (such as the

ability to switch to protected or system management mode).

實(shí)地址模式:這種操作模式提供了intel8086處理器的編程環(huán)境,包括一些擴(kuò)展的特性(比如在保護(hù)模式和系統(tǒng)管理模式之間的相互切換)

 

System management mode (SMM) — SMM is a standard architectural feature

in all IA-32 processors, beginning with the Intel386 SL processor. This mode

provides an operating system or executive with a transparent mechanism for

implementing power management and OEM differentiation features. SMM is

entered through activation of an external system interrupt pin (SMI#), which

generates a system management interrupt (SMI). In SMM, the processor

switches to a separate address space while saving the context of the currently

running program or task. SMM-specific code may then be executed transparently.

Upon returning from SMM, the processor is placed back into its state prior to the

SMI.

系統(tǒng)管理模式(SMM):SMM是一種自itel386 SL處理器開始,,所有IA32處理都擁有的標(biāo)準(zhǔn)架構(gòu)模式。這種模式為操作系統(tǒng)或者程序提供了一種在電源管理,不同設(shè)備廠生的不同特性的管理等的透明的架構(gòu)。SMM模式通過外部中斷(SMI#)來激活,激活的同時(shí)會產(chǎn)生一個系統(tǒng)管理中斷(SMI)。在SMM模式下,處理器在切換至獨(dú)立的地址空間的時(shí)候,會將直接保存當(dāng)前程序或者當(dāng)前任務(wù)的上下文。當(dāng)SMM模式返回是,SMM的特定的代碼會被透明的執(zhí)行。??后面這句不懂。

 

Virtual-8086 mode — In protected mode, the processor supports a quasioperating

mode known as virtual-8086 mode. This mode allows the processor

execute 8086 software in a protected, multitasking environment.

Intel 64 architecture supports all operating modes of IA-32 architecture and IA-32e

modes:
虛擬8086模式:在保護(hù)模式下,處理器支持一種與保護(hù)模式十分類似的模式,這種模式叫虛擬8086模式。

這種模式允許處理去在一個受保護(hù)的,多任務(wù)的環(huán)境中運(yùn)行8086的程序。Intel64位架構(gòu)支持所有關(guān)于IA32IA32e的模式。

 

IA-32e mode — In IA-32e mode, the processor supports two sub-modes:

compatibility mode and 64-bit mode. 64-bit mode provides 64-bit linear

addressing and support for physical address space larger than 64 GBytes.

Compatibility mode allows most legacy protected-mode applications to run

unchanged.

Figure 2-3 shows how the processor moves between operating modes.

IE32E模式:在IE32E模式下,處理器支持兩種子模式:兼容模式和64位模式。64位模式提供64位的線性地址,這使得這種模式可以用于超過64GB的物理地址空間。而兼容模式則允許絕大數(shù)在保護(hù)模式下合法的程序不經(jīng)修改即可在該模式上運(yùn)行。圖2-3說明了處理器如何在操作模式間切換。

The processor is placed in real-address mode following power-up or a reset. The PE

flag in control register CR0 then controls whether the processor is operating in realaddress

or protected mode. See also: Section 9.9, “Mode Switching.”

當(dāng)電源接通或者重啟時(shí),處理器是在實(shí)地址模式下運(yùn)行的。CR0控制寄存器里的PE標(biāo)識控制處理器是在實(shí)地址模式下運(yùn)行,還是在保護(hù)模式下運(yùn)行。查看章節(jié)9.9.

The VM flag in the EFLAGS register determines whether the processor is operating in

protected mode or virtual-8086 mode. Transitions between protected mode and

virtual-8086 mode are generally carried out as part of a task switch or a return from

an interrupt or exception handler. See also: Section 15.2.5, “Entering Virtual-8086

Mode.”

EFLAGS寄存器里的VM標(biāo)識決定處理器是運(yùn)行在保護(hù)模式下,還是運(yùn)行在虛擬8086模式下。通常,在一個中斷或者異常捕捉器返回,或者任務(wù)切換時(shí),兩種模式的切換就會完成。看章節(jié)15.2.5.

 

 

The LMA bit (IA32_EFER.LMA.LMA[bit 10]) determines whether the processor is

operating in IA-32e mode. When running in IA-32e mode, 64-bit or compatibility

sub-mode operation is determined by CS.L bit of the code segment. The processor

enters into IA-32e mode from protected mode by enabling paging and setting the

LME bit (IA32_EFER.LME[bit 8]). See also: Chapter 9, “Processor Management and

Initialization.”

IA32_EFER_LMA_LMA的第十個字節(jié))LMA位決定處理器是否運(yùn)行在IA32E模式下。代碼段的CS.L位決定處理器是運(yùn)行在IA32E模式下,還是運(yùn)行在64位模式下,還是運(yùn)行在兼容模式下。當(dāng)設(shè)置LME位(IA32_EFER_LME的第8個自己)和啟用分頁時(shí),處理器會自動從保護(hù)模式進(jìn)入到IA32E模式。

看章節(jié)9.

 

 

The processor switches to SMM whenever it receives an SMI while the processor is in

real-address, protected, virtual-8086, or IA-32e modes. Upon execution of the RSM

instruction, the processor always returns to the mode it was in when the SMI

occurred.

當(dāng)處理器運(yùn)行在實(shí)地址模式,或是保護(hù)模式,或是虛擬8086模式,或是IA32E模式下的時(shí)候,一旦處理器收到一個系統(tǒng)管理中斷,處理器就會切換至系統(tǒng)管理模式。當(dāng)RSM指令返回時(shí),處理器總是切換回它在系統(tǒng)管理模式運(yùn)行之前的模式。

 

 

 

2.3 SYSTEM FLAGS AND FIELDS IN THE EFLAGS

REGISTER(EFLAGS寄存器的系統(tǒng)標(biāo)識和標(biāo)識塊)

The system flags and IOPL field of the EFLAGS register control I/O, maskable hardware

interrupts, debugging, task switching, and the virtual-8086 mode (see

Figure 2-4). Only privileged code (typically operating system or executive code)

should be allowed to modify these bits.

The system flags and IOPL are:

EFLAGS寄存器里的系統(tǒng)標(biāo)識符和IO權(quán)限等級塊控制 I/O,硬件中斷的屏蔽,調(diào)試,任務(wù)切換和虛擬8086模式(看圖2-4),只有權(quán)限操作代碼(以操作系統(tǒng)代碼或者程序代碼為代表)才被允許修改這些位的值。

下面是系統(tǒng)標(biāo)識和IO權(quán)限控制塊的內(nèi)容:

 

 

TF Trap (bit 8) — Set to enable single-step mode for debugging; clear to

disable single-step mode. In single-step mode, the processor generates a

debug exception after each instruction. This allows the execution state of a

program to be inspected after each instruction. If an application program

sets the TF flag using a POPF, POPFD, or IRET instruction, a debug exception

is generated after the instruction that follows the POPF, POPFD, or IRET.

TF陷入(第8位):設(shè)值的時(shí)候激活調(diào)試的單步執(zhí)行模式;清零則禁止單步執(zhí)行模式。在單步執(zhí)行模式下,處理器會在每條指令執(zhí)行后產(chǎn)生一個調(diào)試異常中斷,中斷后允許查看每條指令執(zhí)行后程序的狀態(tài)。當(dāng)程序用OPPF,OPOFD,IRET指令來設(shè)置TF標(biāo)識的時(shí)候,POPF,POPFD,IRET后的第一條指令會誘發(fā)一個調(diào)試異常中斷。

 

IF Interrupt enable (bit 9) — Controls the response of the processor to

maskable hardware interrupt requests (see also: Section 5.3.2, “Maskable

Hardware Interrupts”). The flag is set to respond to maskable hardware

interrupts; cleared to inhibit maskable hardware interrupts. The IF flag does

not affect the generation of exceptions or nonmaskable interrupts (NMI

interrupts). The CPL, IOPL, and the state of the VME flag in control register

CR4 determine whether the IF flag can be modified by the CLI, STI, POPF,

POPFD, and IRET.

IF 中斷激活(第9位):控制處理器對硬件中斷屏蔽要求的相應(yīng)(查看章節(jié)5.3.2)。該標(biāo)識為設(shè)值這激活處理器對硬件中斷屏蔽的響應(yīng),清零這阻止硬件中斷屏蔽。IF標(biāo)識不影響非硬件中斷(NMI)和異常。CR4寄存器里的VME標(biāo)識,和CPL,IPOL一起決定指令CLI,STI,POPF,POPFD,IRET是否能修改IF標(biāo)識的值。

 

 

IOPL I/O privilege level field (bits 12 and 13) — Indicates the I/O privilege

level (IOPL) of the currently running program or task. The CPL of the

currently running program or task must be less than or equal to the IOPL to

access the I/O address space. This field can only be modified by the POPF

and IRET instructions when operating at a CPL of 0.

The IOPL is also one of the mechanisms that controls the modification of the

IF flag and the handling of interrupts in virtual-8086 mode when virtual

mode extensions are in effect (when CR4.VME = 1). See also: Chapter 13,

 “Input/Output,” in the Intel® 64 and IA-32 Architectures Software Developer’s

Manual, Volume 1.

I

I/O權(quán)限等級快(位12和位13):這兩個位表明了當(dāng)前運(yùn)行的程序或任務(wù)的I/O權(quán)限等級。當(dāng)前程序或任務(wù)的處理器權(quán)限等級(CPL)一定要比前程序或任務(wù)要訪問的I/O地址空間的I/O權(quán)限等級要低。只有指令OPPFIRET在處理器權(quán)限等級0的狀態(tài)下才能修改這塊的數(shù)值。查看章節(jié)13.

 

 

NT Nested task (bit 14) — Controls the chaining of interrupted and called

tasks. The processor sets this flag on calls to a task initiated with a CALL

instruction, an interrupt, or an exception. It examines and modifies this flag

on returns from a task initiated with the IRET instruction. The flag can be

explicitly set or cleared with the POPF/POPFD instructions; however,

changing to the state of this flag can generate unexpected exceptions in

application programs.

See also: Section 6.4, “Task Linking.”

NT內(nèi)嵌任務(wù)(位14):控制被中斷任務(wù)和被調(diào)用任務(wù)的鏈。當(dāng)通過指令CALL,中斷,或是異常調(diào)用任務(wù)時(shí),處理器就會設(shè)置該標(biāo)識的值。當(dāng)一個任務(wù)通過IRET指令返回時(shí),處理器會檢查和修改該標(biāo)識的值。雖然可以通過POPF/IRET指令來設(shè)置或清零該標(biāo)識的值,但改變這個標(biāo)識的狀態(tài)可能會引發(fā)一些程序的意外的異常。

 

 

RF Resume (bit 16) — Controls the processor’s response to instruction-breakpoint

conditions. When set, this flag temporarily disables debug exceptions

(#DB) from being generated for instruction breakpoints (although other

exception conditions can cause an exception to be generated). When clear,

instruction breakpoints will generate debug exceptions.

The primary function of the RF flag is to allow the restarting of an instruction

following a debug exception that was caused by an instruction breakpoint

condition. Here, debug software must set this flag in the EFLAGS image on

the stack just prior to returning to the interrupted program with IRETD (to

prevent the instruction breakpoint from causing another debug exception).

The processor then automatically clears this flag after the instruction

returned to has been successfully executed, enabling instruction breakpoint

faults again.

See also: Section 18.3.1.1, “Instruction-Breakpoint Exception Condition.”

RF(重設(shè))(位16):該標(biāo)識控制處理器對指令的斷點(diǎn)情況的響應(yīng)。該標(biāo)識設(shè)值就會暫時(shí)禁止指令斷點(diǎn)產(chǎn)生調(diào)試異常(雖然其他的異常會誘發(fā)產(chǎn)生一個異常);清零的時(shí)候,激活指令斷點(diǎn)產(chǎn)生調(diào)試異常。指令斷點(diǎn)狀態(tài)產(chǎn)生的異常,可以在調(diào)試異常后的第一條指令,通過RF標(biāo)識的函數(shù)重新誘發(fā)。調(diào)試中的程序必須在程序因?yàn)?/span>IRETD而中斷返回之前,設(shè)置棧里的EFLAGS寄存器鏡像的RF標(biāo)識(防止指令斷點(diǎn)引發(fā)另外一個調(diào)試異常)。處理器會在返回指令成功執(zhí)行后,自動清零該標(biāo)識,并且重新激活指令錯誤。

 

 

 

VM Virtual-8086 mode (bit 17) — Set to enable virtual-8086 mode; clear to

return to protected mode.

See also: Section 15.2.1, “Enabling Virtual-8086 Mode.”

VM 虛擬8086模式(位17):設(shè)值則激活虛擬8086模式,清零則返回保護(hù)模式。查看章節(jié)15.2.1.

 

AC Alignment check (bit 18) — Set this flag and the AM flag in control register

CR0 to enable alignment checking of memory references; clear the AC flag

and/or the AM flag to disable alignment checking. An alignment-check

exception is generated when reference is made to an unaligned operand,

such as a word at an odd byte address or a doubleword at an address which

is not an integral multiple of four. Alignment-check exceptions are generated

only in user mode (privilege level 3). Memory references that default to privilege

level 0, such as segment descriptor loads, do not generate this exception

even when caused by instructions executed in user-mode.

The alignment-check exception can be used to check alignment of data. This

is useful when exchanging data with processors which require all data to be

aligned. The alignment-check exception can also be used by interpreters to

flag some pointers as special by misaligning the pointer. This eliminates

overhead of checking each pointer and only handles the special pointer when

used.

AC 數(shù)據(jù)對齊檢查(位18 通過設(shè)置CR0控制寄存器中的該標(biāo)識和AM標(biāo)識,可以激活內(nèi)存引用的數(shù)據(jù)對齊檢查,清零該標(biāo)識(AM清零不是必須的)則禁止數(shù)據(jù)對齊檢查。當(dāng)內(nèi)存引用的數(shù)據(jù)是由無法直接構(gòu)成對齊的操作數(shù)組成的時(shí)候,一個數(shù)據(jù)對齊異常便會產(chǎn)生,比如零碎地址上的一個字,或者不是四的倍數(shù)的地址上的一個雙字。數(shù)據(jù)對齊異常只會在用戶模式(等級3)下產(chǎn)生。因?yàn)橛脩裟J较碌闹噶顖?zhí)行而導(dǎo)致的,類似段描述符導(dǎo)入等在等級0上的內(nèi)存數(shù)據(jù)引用,是不會誘發(fā)數(shù)據(jù)對齊異常的。

數(shù)據(jù)對齊異常可以用于檢查數(shù)據(jù)的對齊。因?yàn)樘幚砥饕笏袛?shù)據(jù)必須對齊,因此,在和處理器交換數(shù)據(jù)時(shí),進(jìn)行數(shù)據(jù)對齊的檢查,是非常有用的。在解釋程序標(biāo)明一些特殊的指針,比如調(diào)整指針的位置時(shí),通過使用數(shù)據(jù)對齊異常,可以不必對每個指針進(jìn)行過度的檢查,只需處理正在使用的特殊指針。??

 

VIF Virtual Interrupt (bit 19) — Contains a virtual image of the IF flag. This

flag is used in conjunction with the VIP flag. The processor only recognizes

the VIF flag when either the VME flag or the PVI flag in control register CR4 is

set and the IOPL is less than 3. (The VME flag enables the virtual-8086 mode

extensions; the PVI flag enables the protected-mode virtual interrupts.)

See also: Section 15.3.3.5, “Method 6: Software Interrupt Handling,” and

Section 15.4, “Protected-Mode Virtual Interrupts.”

VIF 虛擬終端(位19 :包含了IF標(biāo)識的一個虛擬鏡像。VIF標(biāo)識和VME標(biāo)識一起使用。只有當(dāng)IOPL的權(quán)限等級小于3,并且CR4控制寄存器里的整個VME標(biāo)識或者整個PVI標(biāo)識被設(shè)值,處理器才會識別VIF標(biāo)識。(VME標(biāo)識激活虛擬8086模式的擴(kuò)展特性;PVI標(biāo)識激活保護(hù)模式的虛擬終端)。度章節(jié)15.3.3.5.

 

 

 

VIP Virtual interrupt pending (bit 20) — Set by software to indicate that an

interrupt is pending; cleared to indicate that no interrupt is pending. This flag

is used in conjunction with the VIF flag. The processor reads this flag but

never modifies it. The processor only recognizes the VIP flag when either the

VME flag or the PVI flag in control register CR4 is set and the IOPL is less than

3. The VME flag enables the virtual-8086 mode extensions; the PVI flag

enables the protected-mode virtual interrupts.

VIP  虛擬中斷等待(位20): 該標(biāo)識表明一個中斷被等待,且該位是通過程序來設(shè)值得。清零表明無中斷被等待。該標(biāo)識和VIF標(biāo)識一起使用。處理會讀取該標(biāo)識但從來不修改標(biāo)識的值。只有IOPL等級小于3,并且CR4控制寄存器里的VME標(biāo)識或者PVI標(biāo)識被設(shè)值,處理器才會識別該標(biāo)識。VME標(biāo)識激活虛擬8086的擴(kuò)展特性,PVI標(biāo)識激活保護(hù)模式的虛擬終端。

 

 

ID Identification (bit 21). — The ability of a program or procedure to set or

clear this flag indicates support for the CPUID instruction.

ID 身份驗(yàn)證(21) 程序可以對該標(biāo)識設(shè)值或者清零。該標(biāo)識用以表明對CPUID指令的支持。

 

2.3.1 System Flags and Fields in IA-32e ModeIA32E模式的系統(tǒng)標(biāo)識和系統(tǒng)標(biāo)識塊)

In 64-bit mode, the RFLAGS register expands to 64 bits with the upper 32 bits

reserved. System flags in RFLAGS (64-bit mode) or EFLAGS (compatibility mode)

are shown in Figure 2-4.

64模式下,EFLAGS寄存器擴(kuò)展至64位,而高32位是保留的。EFLAGS寄存器里的系統(tǒng)標(biāo)識如圖2.4所示。

 

 

In IA-32e mode, the processor does not allow the VM bit to be set because virtual-

8086 mode is not supported (attempts to set the bit are ignored). Also, the processor

will not set the NT bit. The processor does, however, allow software to set the NT bit

(note that an IRET causes a general protection fault in IA-32e mode if the NT bit is

set).

虛擬8086模式不支持VM標(biāo)識,故在IA32E模式下,處理器不允許設(shè)置VM標(biāo)識(即使設(shè)置也會被忽略)。

同樣,處理器也不設(shè)置NT.但是允許軟件設(shè)置NT位(如果NT被設(shè)值,IRET會誘發(fā)一個保護(hù)錯誤)

 

 

In IA-32e mode, the SYSCALL/SYSRET instructions have a programmable method of

specifying which bits are cleared in RFLAGS/EFLAGS. These instructions save/restore

EFLAGS/RFLAGS.

IA32E模式下,指令SYSCALL/SYSRET都有一個可編程的方法來識別RFLAGS/EFLAGS寄存器里的那些位被清零了。這些指令可以保存/重新保存EFLAGS/RFLAGS的值。

 

 

2.4 MEMORY-MANAGEMENT REGISTERS內(nèi)存管理寄存器

The processor provides four memory-management registers (GDTR, LDTR, IDTR,

and TR) that specify the locations of the data structures which control segmented

memory management (see Figure 2-5). Special instructions are provided for loading

and storing these registers.

處理器提供了四個內(nèi)存管理寄存器(GDTR,LDTR,IDTR,TR,這些寄存器用于查詢控制分段內(nèi)存管理的數(shù)據(jù)結(jié)構(gòu)的位置。(看圖2-5)一些特別的指令用于導(dǎo)入和保存這些寄存器的值。

2.4.1 Global Descriptor Table Register (GDTR)全局描述符符表寄存器

The GDTR register holds the base address (32 bits in protected mode; 64 bits in

IA-32e mode) and the 16-bit table limit for the GDT. The base address specifies the

linear address of byte 0 of the GDT; the table limit specifies the number of bytes in

the table.

全局描述符表寄存器由基地址(保護(hù)模式為32位,IA32E64位),16位表長限制組成。基地址指明GDT的第0個字節(jié)的線性地址;表長限制指明表里的字節(jié)數(shù)目。

 

 

The LGDT and SGDT instructions load and store the GDTR register, respectively. On

power up or reset of the processor, the base address is set to the default value of 0

and the limit is set to 0FFFFH. A new base address must be loaded into the GDTR as

part of the processor initialization process for protected-mode operation.

See also: Section 3.5.1, “Segment Descriptor Tables.”

指令LGDTSGDT用以導(dǎo)入和保存GDTR寄存器。當(dāng)電源接通或者處理重啟時(shí),GDT的基地值設(shè)置成默認(rèn)值0,而表長限制被設(shè)置成OFFFFH。保護(hù)模式下,作為處理器初始化進(jìn)程的一部分,GDTR的新地址必須被導(dǎo)入。

 

 

2.4.2 Local Descriptor Table Register (LDTR)局部描述符表寄存器

The LDTR register holds the 16-bit segment selector, base address (32 bits in

protected mode; 64 bits in IA-32e mode), segment limit, and descriptor attributes

for the LDT. The base address specifies the linear address of byte 0 of the LDT

segment; the segment limit specifies the number of bytes in the segment. See also:

Section 3.5.1, “Segment Descriptor Tables.”

LDTR寄存器由16段選擇器,基地址(保護(hù)模式為32位,IA32E模式為64位),段長限制,以及LDT的描述符屬性組成。基地值知名LDT的第0字節(jié)的線性地址。段長限制知名段的字節(jié)數(shù)目;

 

 

The LLDT and SLDT instructions load and store the segment selector part of the LDTR

register, respectively. The segment that contains the LDT must have a segment

descriptor in the GDT. When the LLDT instruction loads a segment selector in the

LDTR: the base address, limit, and descriptor attributes from the LDT descriptor are

automatically loaded in the LDTR.

指令LLDTSLDT用于導(dǎo)入和保存LDTR的段選擇器部分。包含LDT的段用于一個在GDT里的段描述符。當(dāng)LLDT指令導(dǎo)入LDTR里的段選擇器的時(shí)候,基地址,段長顯示,描述符屬性會給自動導(dǎo)入到LDTR里。

 

 

When a task switch occurs, the LDTR is automatically loaded with the segment

selector and descriptor for the LDT for the new task. The contents of the LDTR are not

automatically saved prior to writing the new LDT information into the register.

On power up or reset of the processor, the segment selector and base address are set

to the default value of 0 and the limit is set to 0FFFFH.

發(fā)生任務(wù)切換時(shí),新任務(wù)的LDT里的段選擇器,描述符自動導(dǎo)入LDTR里。在將新的LDT信息寫入到寄存器之前,LDTR里的內(nèi)容不會自動保存。電源接通或者處理器重啟,選擇器和基地址被設(shè)置成默認(rèn)值0,段長限制被設(shè)置成0FFFFH

 

 

2.4.3 IDTR Interrupt Descriptor Table Register IDTR中斷描述符表寄存器

The IDTR register holds the base address (32 bits in protected mode; 64 bits in

IA-32e mode) and 16-bit table limit for the IDT. The base address specifies the linear

address of byte 0 of the IDT; the table limit specifies the number of bytes in the table.

The LIDT and SIDT instructions load and store the IDTR register, respectively. On

power up or reset of the processor, the base address is set to the default value of 0

and the limit is set to 0FFFFH. The base address and limit in the register can then be

changed as part of the processor initialization process.

See also: Section 5.10, “Interrupt Descriptor Table (IDT).”

IDTR寄存器由基地址(保護(hù)模式為32位,IA32E模式為64位),16IDT表長限制組成。基地址知名IDT的第0個字節(jié)的線性地址。表長限制指明表的字節(jié)數(shù)目。指令LIDTSIDT分別用于導(dǎo)入和保存IDTR寄存器里的值。電源接通或者處理器重啟時(shí),基地址被設(shè)置成默認(rèn)值0,段長限制被設(shè)置成0FFFFH。處理器初始化進(jìn)程時(shí),作為初始化的一部分,寄存器里的基地址和段長顯示可以發(fā)生變化。

 

 

2.4.4 Task Register (TR) 任務(wù)寄存器

The task register holds the 16-bit segment selector, base address (32 bits in

protected mode; 64 bits in IA-32e mode), segment limit, and descriptor attributes

for the TSS of the current task. The selector references the TSS descriptor in the GDT.

The base address specifies the linear address of byte 0 of the TSS; the segment limit

specifies the number of bytes in the TSS. See also: Section 6.2.4, “Task Register.”

The LTR and STR instructions load and store the segment selector part of the task

register, respectively. When the LTR instruction loads a segment selector in the task

register, the base address, limit, and descriptor attributes from the TSS descriptor

are automatically loaded into the task register. On power up or reset of the processor,

the base address is set to the default value of 0 and the limit is set to 0FFFFH.

When a task switch occurs, the task register is automatically loaded with the

segment selector and descriptor for the TSS for the new task. The contents of the

task register are not automatically saved prior to writing the new TSS information

into the register.

任務(wù)寄存器由16位段選擇器,基地址(保護(hù)模式為32位,IA32E模式為64位),段長限制,以及當(dāng)前任務(wù)的任務(wù)狀態(tài)段的段描述符屬性組成。選擇器指向GDT里的任務(wù)狀態(tài)段的描述符。基地址指明任務(wù)狀態(tài)段的第0個字節(jié)的線性地址。

指令LTRSTR分別用于導(dǎo)入和保存任務(wù)寄存器里的段選擇器部分。使用LTR指令導(dǎo)入任務(wù)寄存器的段選擇器的時(shí)候,TSS描述符的屬性,基地址,段長顯示會被自動導(dǎo)入。電源接通或處理器重啟時(shí),基地址被設(shè)置成默認(rèn)值0,段長限制被設(shè)置成0FFFFH。發(fā)生任務(wù)切換時(shí),新任務(wù)的任務(wù)狀態(tài)段的段選擇器和描述符會被自動導(dǎo)入到TR寄存器中。在新任務(wù)的TSS信息導(dǎo)入到寄存器之前,TR寄存器里面的內(nèi)容不會被自動保存。

posted on 2009-09-22 23:59 ChinaPanda 閱讀(816) 評論(0)  編輯 收藏 引用 所屬分類: Os

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            国产亚洲激情在线| 亚洲伦理久久| 亚洲精品小视频| 一区二区三区日韩在线观看| 亚洲欧美日韩一区在线| 久久夜色精品国产欧美乱极品| 激情一区二区三区| 亚洲电影av在线| 亚洲视频中文| 久久中文在线| 日韩一级欧洲| 久久精品视频免费播放| 欧美日韩一区二区精品| 韩国三级在线一区| 亚洲一二三区在线| 欧美第十八页| 亚洲校园激情| 欧美高潮视频| 国产一级揄自揄精品视频| 日韩亚洲不卡在线| 久久久久一区二区三区| 99在线视频精品| 久久综合色8888| 国产欧美日韩亚洲精品| 亚洲精品中文字| 久热精品视频在线| 亚洲调教视频在线观看| 欧美成人激情视频| 国产一区二区三区四区在线观看| 国产日产高清欧美一区二区三区| 国产精品专区一| 一本久久a久久免费精品不卡| 一本色道久久88亚洲综合88| 久久成人国产精品| 99ri日韩精品视频| 美国十次了思思久久精品导航| 欧美精品www在线观看| 精品91久久久久| 久久成人羞羞网站| 亚洲最新视频在线播放| 欧美成人免费播放| 影视先锋久久| 久久精品国产久精国产爱| 一区二区高清视频在线观看| 欧美激情欧美激情在线五月| 一区二区三区在线视频观看| 欧美专区日韩专区| 中日韩高清电影网| 欧美日韩免费观看一区| 亚洲激情在线激情| 蜜臀va亚洲va欧美va天堂| 久久爱www久久做| 国产精品系列在线| 先锋影音一区二区三区| 一区二区三区www| 欧美日韩国产综合一区二区| 最新国产乱人伦偷精品免费网站| 中文在线一区| 亚洲精品黄网在线观看| 美女啪啪无遮挡免费久久网站| 欧美精品一区二区在线观看| 亚洲国产精品小视频| 久久字幕精品一区| 久久久欧美一区二区| 在线播放亚洲一区| 欧美96在线丨欧| 久久在线免费观看| 在线看无码的免费网站| 免费久久精品视频| 久久久最新网址| 亚洲国产aⅴ天堂久久| 欧美成人r级一区二区三区| 久久一区中文字幕| 亚洲人成网在线播放| 亚洲电影免费观看高清完整版| 亚洲欧美日韩综合一区| 国产女主播视频一区二区| 久久九九热免费视频| 欧美在线视频播放| 在线观看成人av电影| 欧美寡妇偷汉性猛交| 欧美激情精品久久久久久久变态| 黑人极品videos精品欧美裸| 狼人社综合社区| 久久最新视频| 亚洲精品国产精品久久清纯直播| 久久成人一区| 久久精品视频亚洲| 91久久香蕉国产日韩欧美9色| 欧美一站二站| 久久精品视频在线| 亚洲精品色图| 制服丝袜亚洲播放| 国产自产2019最新不卡| 欧美黄色aa电影| 欧美日韩国产一级片| 性做久久久久久久久| 欧美综合激情网| 亚洲国产日韩一级| 亚洲麻豆av| 国产精品一区二区你懂得| 久热综合在线亚洲精品| 欧美紧缚bdsm在线视频| 先锋资源久久| 久久午夜色播影院免费高清| 99视频精品全部免费在线| 在线中文字幕日韩| 一色屋精品视频在线观看网站| 久久久久这里只有精品| 欧美国产一区二区| 亚洲一区在线视频| 久久久国产精品一区二区中文 | 亚洲激情视频在线| 亚洲人体影院| 国产精品影音先锋| 亚洲国产精品久久精品怡红院 | 美日韩精品免费| 欧美人妖另类| 欧美一级艳片视频免费观看| 久热综合在线亚洲精品| 亚洲免费在线| 麻豆久久婷婷| 午夜视频在线观看一区| 欧美xxx在线观看| 久久er精品视频| 欧美伦理91i| 久久久久久久波多野高潮日日| 欧美一区二区啪啪| 日韩一级片网址| 午夜在线不卡| 一本色道久久88亚洲综合88| 久久精品人人| 亚洲欧美综合v| 欧美高潮视频| 久久资源在线| 国产精品系列在线| 亚洲精品三级| 亚洲国产午夜| 欧美中文字幕久久| 亚洲综合视频网| 欧美成人亚洲| 久久网站热最新地址| 国产精品国产三级国产a| 欧美刺激性大交免费视频| 国产欧美亚洲一区| 99这里只有久久精品视频| 亚洲国产你懂的| 久久精品视频在线| 久久大逼视频| 国产精品理论片在线观看| 亚洲激情一区二区| 亚洲国产欧美一区| 久久国产精品黑丝| 久久疯狂做爰流白浆xx| 国产精品毛片a∨一区二区三区| 久久精品国产欧美亚洲人人爽| 久久久av水蜜桃| 欧美一级视频精品观看| 欧美丝袜一区二区三区| 亚洲国产一区二区视频| 在线日韩欧美| 久久精品一区蜜桃臀影院 | 亚洲日本中文| 久久免费黄色| 久久综合激情| 黄色精品一二区| 性欧美大战久久久久久久久| 亚洲欧美另类在线观看| 国产精品ⅴa在线观看h| 日韩视频在线免费| 一本久久a久久精品亚洲| 欧美va亚洲va香蕉在线| 欧美激情自拍| 亚洲人人精品| 欧美大色视频| 亚洲国产美国国产综合一区二区| 国产精品午夜久久| 亚洲影院色在线观看免费| 亚洲图色在线| 欧美色视频在线| 在线视频日本亚洲性| 亚洲在线免费| 国产精品美女午夜av| 亚洲欧美日韩另类精品一区二区三区| 亚洲国产一区在线| 你懂的视频一区二区| 最新国产成人av网站网址麻豆| 国产欧美日韩综合精品二区| 亚洲综合精品四区| 久久国产主播精品| 国产一区二区福利| 久久久夜精品| 欧美二区在线| 一区二区欧美国产| 国产精品毛片| 久久成人av少妇免费| 欧美xxx在线观看| 亚洲剧情一区二区| 欧美三级视频| 亚洲欧美在线x视频|