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

<2009年9月>
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

統(tǒng)計(jì)

  • 隨筆 - 21
  • 文章 - 0
  • 評(píng)論 - 2
  • 引用 - 0

常用鏈接

留言簿

隨筆分類

隨筆檔案

搜索

  •  

最新評(píng)論

閱讀排行榜

評(píng)論排行榜

第二章 系統(tǒng)架構(gòu)瀏覽2.5

2.5 CONTROL REGISTERS控制寄存器

Control registers (CR0, CR1, CR2, CR3, and CR4; see Figure 2-6) determine operating

mode of the processor and the characteristics of the currently executing task.

These registers are 32 bits in all 32-bit modes and compatibility mode.

In 64-bit mode, control registers are expanded to 64 bits. The MOV CRn instructions

are used to manipulate the register bits. Operand-size prefixes for these instructions

are ignored. The following is also true:

控制寄存器(CR0,CR1,CR2,CR3,CR4,看圖2-6)決定處理器的運(yùn)行模式,以及當(dāng)前執(zhí)行程序的一些特性。在所有32位模式以及其兼容模式下,這些寄存器都是32位的。

64位模式下,控制寄存器擴(kuò)展至64位。指令MOV CRn用于操作寄存器的位。該操作指令的前綴操作數(shù)的大小被忽略。

下面描述的內(nèi)容位真:

 

Bits 63:32 of CR0 and CR4 are reserved and must be written with zeros. Writinga nonzero value to any of the upper 32 bits results in a general-protectionexception, #GP(0).

CR0,CR4寄存器的位32至位63保留,必須設(shè)為0.向這些為設(shè)值會(huì)誘發(fā)一個(gè)保護(hù)中斷#GP(0).

 

All 64 bits of CR2 are writable by software.

CR264個(gè)位對(duì)于軟件都是可寫(xiě)的。

 

Bits 51:40 of CR3 are reserved and must be 0

CR3的位40至位52保留,必須清零。

 

 

The MOV CRn instructions do not check that addresses written to CR2 and CR3are within the linear-address or physical-address limitations of the implementation.

指令MOV CRn不對(duì)將要寫(xiě)入CR2CR3的地址做合法性的檢查,即檢查是否在合法的線性地址空間或者合法的物理地址空間。

 

 

Register CR8 is available in 64-bit mode only.

CR8只有在64模式才可用

 

The control registers are summarized below, and each architecturally defined controlfield in these control registers are described individually. In Figure 2-6, the width of

the register in 64-bit mode is indicated in parenthesis (except for CR0).

控制寄存器如下綜述。每個(gè)架構(gòu)都在控制寄存器里定義了控制塊。稍后會(huì)對(duì)這些控制寄存器進(jìn)行獨(dú)立的描述。圖26表明這些寄存器的大小是64位(除了CR0.

 

 

CR0 — Contains system control flags that control operating mode and states of the processor.

包含系統(tǒng)控制標(biāo)識(shí),用以控制處理器的運(yùn)行模式和狀態(tài)

 

CR1 — Reserved.保留

 

CR2 — Contains the page-fault linear address (the linear address that caused apage fault).

包含頁(yè)面錯(cuò)誤的線性地址(誘發(fā)頁(yè)面錯(cuò)誤的線性地址)

 

CR3 — Contains the physical address of the base of the page directory and two flags (PCD and PWT). This register is also known as the page-directory base register (PDBR). Only the most-significant bits (less the lower 12 bits) of the base

address are specified; the lower 12 bits of the address are assumed to be 0. The page directory must thus be aligned to a page (4-KByte) boundary. The PCD and PWT flags control caching of the page directory in the processor’s internal data

caches (they do not control TLB caching of page-directory information).

CR3包含頁(yè)目錄的物理基地址和兩個(gè)標(biāo)識(shí)(PCD PWT.這個(gè)處理器也通常作為頁(yè)目錄基地址寄存器(PDBR).只有基地址中最重要的位(低12位)才會(huì)被指明;地址的低12位通常假設(shè)其值為0.頁(yè)表必須與頁(yè)的分界線(4KB)對(duì)齊。PCD PWT標(biāo)識(shí)控制處理器內(nèi)部數(shù)據(jù)緩沖中的頁(yè)表緩沖(這兩個(gè)標(biāo)識(shí)不控制頁(yè)表信息中的TLB緩沖)

 

When using the physical address extension, the CR3 register contains the base address of the page-directory-pointer table In IA-32e mode, the CR3 register contains the base address of the PML4 table.

當(dāng)使用物理地址的擴(kuò)展特性時(shí),CR3寄存器包含的是頁(yè)目錄指針表的基地址。在IA32E模式下,CR3寄存器包含了PML4表的基地址。

 

CR4 — Contains a group of flags that enable several architectural extensions,and indicate operating system or executive support for specific processor capabilities.

The control registers can be read and loaded (or modified) using the moveto-or-from-control-registers forms of the MOV instruction. In protected mode,the MOV instructions allow the control registers to be read or loaded (at privilege level 0 only). This restriction means that application programs or operatingsystem procedures (running at privilege levels 1, 2, or 3) are prevented from reading or loading the control registers.

CR4寄存器包含一組標(biāo)識(shí),這些標(biāo)識(shí)用于激活架構(gòu)的一些擴(kuò)展特性,并且標(biāo)明操作系統(tǒng)或服務(wù)程序?yàn)樘幚砥鞯囊恍┨厥獾奶匦宰龅囊恍┲С帧?/span>

通過(guò)MOV指令,CR4寄存器可以被導(dǎo)入或讀取或修改。在保護(hù)模式下,MOV指令可以對(duì)CR4寄存器進(jìn)行導(dǎo)入或讀取的操作(只有在等級(jí)0的情況下才允許)。這條約束意味著,操作系統(tǒng)或執(zhí)行程序在登記123的情況下都不被允許對(duì)CR4寄存器驚醒導(dǎo)入或讀取的操作。

 

 

CR8 — Provides read and write access to the Task Priority Register (TPR). It specifies the priority threshold value that operating systems use to control the priority class of external interrupts allowed to interrupt the processor. This register is available only in 64-bit mode. However, interrupt filtering continues to apply in compatibility mode.

CR8寄存器提供關(guān)于讀和寫(xiě)任務(wù)優(yōu)先權(quán)寄存器的權(quán)限信息。被允許產(chǎn)生中斷電外部中斷都有優(yōu)先權(quán)等級(jí);優(yōu)先權(quán)的等級(jí)是有操作系統(tǒng)去控制;而CR8提供了處理器用以控制優(yōu)先權(quán)的優(yōu)先權(quán)臨界值。CR8寄存器只在64位模式才可用。但是,兼容模式仍然提供了中斷屏蔽的功能。

 

When loading a control register, reserved bits should always be set to the values previously read. The flags in control registers are:

導(dǎo)入控制寄存器的值是,保留的位必須一直保留上一次讀到的值。控制寄存器里的標(biāo)識(shí)如下:

 

PG Paging (bit 31 of CR0) — Enables paging when set; disables paging when clear. When paging is disabled, all linear addresses are treated as physical addresses. The PG flag has no effect if the PE flag (bit 0 of register CR0) is not also set; setting the PG flag when the PE flag is clear causes a general protection exception (#GP)On Intel 64 processors, enabling and disabling IA-32e mode operation also  requires modifying CR0.PG.

 

PG 分頁(yè)(CR0的位31 該標(biāo)識(shí)設(shè)值時(shí),激活分頁(yè)功能;清零則禁用分頁(yè)功能。禁用分頁(yè)時(shí),所有的線性地址都被當(dāng)作物理地址看待。如果PE標(biāo)識(shí)(CR0的位0)未設(shè)值,則PG標(biāo)識(shí)無(wú)任何作用。在PE標(biāo)識(shí)清零的情況下,對(duì)PG標(biāo)識(shí)進(jìn)行設(shè)值會(huì)引發(fā)一個(gè)保護(hù)中斷(#GP)。對(duì)于intel64位處理器來(lái)說(shuō),激活和禁用IA32E模式的操作同樣需要修改CR0寄存器的PG標(biāo)識(shí)。

 

 

CD Cache Disable (bit 30 of CR0) — When the CD and NW flags are clear,caching of memory locations for the whole of physical memory in the processor’s internal (and external) caches is enabled. When the CD flag is set, caching is restricted as described in Table 10-5. To prevent the processor

from accessing and updating its caches, the CD flag must be set and the caches must be invalidated so that no cache hits can occur.

CD 緩存禁用(CR0的位30):當(dāng)CD標(biāo)識(shí)和NW標(biāo)識(shí)同時(shí)清零時(shí),內(nèi)存緩存中的處理器內(nèi)部和外部緩存被激活。當(dāng)CD標(biāo)識(shí)設(shè)值時(shí),對(duì)緩存的約束有表10-5所綜述。位防止處理器訪問(wèn)和更新它自己的緩存,CD標(biāo)識(shí)必須設(shè)值,并且緩存必須置成無(wú)效,防止緩存請(qǐng)求的發(fā)生。

 

 

NW Not Write-through (bit 29 of CR0) — When the NW and CD flags are clear, write-back (for Pentium 4, Intel Xeon, P6 family, and Pentium processors) or write-through (for Intel486 processors) is enabled for writes that hit the cache and invalidation cycles are enabled. See Table 10-5 for detailed information about the affect of the NW flag on caching for other settings of  the CD and NW flags.???

 

AM Alignment Mask (bit 18 of CR0) — Enables automatic alignment checking when set; disables alignment checking when clear. Alignment checking is performed only when the AM flag is set, the AC flag in the EFLAGS register is set, CPL is 3, and the processor is operating in either protected or virtual-

8086 mode.

AM 數(shù)據(jù)對(duì)齊屏蔽(CR0的位18):當(dāng)該標(biāo)識(shí)設(shè)值時(shí),激活數(shù)據(jù)的自動(dòng)對(duì)齊;清零時(shí)則禁用數(shù)據(jù)對(duì)齊檢查。只有在處理器在保護(hù)模式或者虛擬8086模式下運(yùn)行,并且處理器權(quán)限(CPL)等級(jí)3EFLAGS寄存器里的AC標(biāo)識(shí)設(shè)值,以及AM標(biāo)識(shí)設(shè)值,數(shù)據(jù)對(duì)齊檢查才會(huì)執(zhí)行。

 

 

 

WP Write Protect (bit 16 of CR0) — Inhibits supervisor-level procedures from writing into user-level read-only pages when set; allows supervisor-level procedures to write into user-level read-only pages when clear (regardless of the U/S bit setting; see Section 3.7.6). This flag facilitates implementation of the copy-on-write method of creating a new process (forking) used by operating

systems such as UNIX.

WP 寫(xiě)保護(hù)(CR0的位16):當(dāng)該位設(shè)值時(shí),阻止超級(jí)用戶的程序?qū)σ话阌脩艏?jí)別的只讀頁(yè)面進(jìn)行寫(xiě)操作;清零則允許。這個(gè)標(biāo)識(shí)降低了操作系統(tǒng)創(chuàng)建新進(jìn)程的copy-on-write方法的實(shí)現(xiàn)難度,比如UNIXfork方法。

 

 

NE Numeric Error (bit 5 of CR0) — Enables the native (internal) mechanism for reporting x87 FPU errors when set; enables the PC-style x87 FPU error reporting mechanism when clear. When the NE flag is clear and the IGNNE#

input is asserted, x87 FPU errors are ignored. When the NE flag is clear andthe IGNNE# input is deasserted, an unmasked x87 FPU error causes the processor to assert the FERR# pin to generate an external interrupt and to stop instruction execution immediately before executing the next waiting

floating-point instruction or WAIT/FWAIT instruction.

The FERR# pin is intended to drive an input to an external interrupt controller (the FERR# pin emulates the ERROR# pin of the Intel 287 and Intel 387 DX math coprocessors). The NE flag, IGNNE# pin, and FERR# pin are used with external logic to implement PC-style error reporting.

NE 數(shù)值錯(cuò)誤(CR0的位5):設(shè)值是激活舉報(bào)X87 FPU錯(cuò)誤的內(nèi)部策略;清零時(shí)激活PC-Style X87 FPU錯(cuò)誤的舉報(bào)方法。

ET Extension Type (bit 4 of CR0) — Reserved in the Pentium 4, Intel Xeon, P6

family, and Pentium processors. In the Pentium 4, Intel Xeon, and P6 family

processors, this flag is hardcoded to 1. In the Intel386 and Intel486 processors,

this flag indicates support of Intel 387 DX math coprocessor instructions

when set.

TS Task Switched (bit 3 of CR0) — Allows the saving of the x87

FPU/MMX/SSE/SSE2/ SSE3 context on a task switch to be delayed until an

x87 FPU/MMX/SSE/SSE2/SSE3 instruction is actually executed by the new

task. The processor sets this flag on every task switch and tests it when

executing x87 FPU/MMX/SSE/SSE2/SSE3 instructions.

 

 

 

posted on 2009-09-27 23:13 ChinaPanda 閱讀(674) 評(píng)論(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>
            亚洲在线国产日韩欧美| 亚洲高清资源| 欧美久久电影| 久久精品国产亚洲5555| 99国产精品久久久久久久| 欧美18av| 久久久久久久久一区二区| 亚洲专区在线视频| 亚洲三级视频| 亚洲国产导航| 黄色成人免费网站| 国产欧美日本| 欧美亚洲成人网| 欧美另类女人| 欧美精品久久久久久久| 欧美r片在线| 久久久久亚洲综合| 久久狠狠久久综合桃花| 亚洲欧美日韩爽爽影院| 亚洲一区www| 宅男在线国产精品| 亚洲精品免费看| 亚洲国产精品黑人久久久| 免费h精品视频在线播放| 久久av一区二区三区漫画| 午夜精品久久久久久久99热浪潮| 一本久久知道综合久久| aa级大片欧美三级| 一区二区免费在线观看| 99精品欧美一区二区蜜桃免费| 亚洲激情在线播放| 亚洲精品国产欧美| 亚洲精品美女久久7777777| 亚洲国产一区二区三区在线播| 精久久久久久| 亚洲国产精品va在线看黑人| 在线精品国产成人综合| 亚洲高清自拍| 日韩亚洲在线| 亚洲图片在线| 午夜久久美女| 久久激情视频久久| 久久综合久色欧美综合狠狠| 久久综合久久88| 欧美大片免费久久精品三p | 欧美国产一区视频在线观看| 欧美成人首页| 欧美视频一区| 国产精品一区在线观看你懂的| 国产欧美一区二区精品性色| 韩日精品在线| 亚洲日产国产精品| 亚洲网站视频福利| 欧美淫片网站| 欧美xxxx在线观看| 日韩一区二区高清| 亚洲永久视频| 久久久噜噜噜久久狠狠50岁| 欧美不卡三区| 国产精品嫩草99a| 一区在线播放| 一本不卡影院| 欧美专区18| 欧美国产成人精品| 日韩视频亚洲视频| 午夜精品久久久久| 欧美xart系列在线观看| 国产精品国产三级国产普通话蜜臀| 国产乱肥老妇国产一区二| 亚洲成人原创| 亚洲午夜性刺激影院| 久久久www免费人成黑人精品| 农夫在线精品视频免费观看| av不卡免费看| 久久婷婷蜜乳一本欲蜜臀| 欧美人成在线| 一区二区在线观看av| 中文精品一区二区三区| 久久久久国产精品一区三寸| 亚洲欧洲三级电影| 欧美一区综合| 欧美色欧美亚洲高清在线视频| 狠狠色综合一区二区| 亚洲天堂久久| 欧美电影在线观看| 午夜精品久久久久| 欧美日韩精品三区| 在线播放日韩专区| 午夜视频在线观看一区二区| 欧美搞黄网站| 久久国产夜色精品鲁鲁99| 欧美色精品在线视频| 亚洲激情欧美| 久久久青草青青国产亚洲免观| 亚洲精品女人| 久久国产免费| 国产精品爽爽ⅴa在线观看| 亚洲日本中文字幕| 久久婷婷色综合| 亚洲男女自偷自拍图片另类| 欧美精品一区在线发布| 在线国产欧美| 欧美在线视频网站| 一区二区三区福利| 欧美精品久久久久久久久老牛影院| 一色屋精品视频免费看| 欧美在线亚洲| 亚洲欧美国产日韩中文字幕| 欧美日韩亚洲一区二区三区在线 | 国产精品99久久99久久久二8| 欧美大尺度在线| 久久久精品国产免大香伊| 国产美女高潮久久白浆| 亚洲一区二区在线播放| 亚洲精品黄色| 欧美精品 日韩| 亚洲激情第一页| 欧美成人伊人久久综合网| 久久精品国产亚洲aⅴ| 国产亚洲精品v| 久久精品99国产精品日本| 亚洲视频在线观看| 国产精品久在线观看| 亚洲一二三区在线| 亚洲最新在线| 欧美无砖砖区免费| 亚洲欧美日韩中文播放| 亚洲婷婷在线| 国产精品成人免费视频| 亚洲一区中文字幕在线观看| 一区二区三区精品国产| 国产精品黄色在线观看| 午夜精品亚洲一区二区三区嫩草| 亚洲香蕉在线观看| 国产毛片精品视频| 久久精品视频免费播放| 欧美在线观看视频一区二区三区 | 欧美黄免费看| 欧美成人四级电影| 一区二区三区回区在观看免费视频| 亚洲精品国产品国语在线app| 欧美成人一区二区在线| 99精品国产福利在线观看免费| 亚洲精品一区二区三区不| 欧美日韩亚洲国产一区| 亚洲欧美另类中文字幕| 欧美一级播放| 亚洲高清一二三区| 亚洲三级性片| 国产精品国产三级国产aⅴ浪潮 | 国产精品三级久久久久久电影| 欧美一级网站| 久久久国产精品一区| 亚洲国产日韩综合一区| 亚洲欧洲中文日韩久久av乱码| 欧美日韩在线另类| 欧美亚洲三区| 麻豆久久精品| 亚洲一区二区3| 欧美有码在线观看视频| 亚洲精品国产精品国自产观看| 一个人看的www久久| 国产专区综合网| 最新国产精品拍自在线播放| 国产精品视频久久| 欧美不卡视频一区| 欧美日韩在线免费| 久久久久久网站| 欧美欧美在线| 久久久久久一区| 欧美日韩一二区| 巨乳诱惑日韩免费av| 欧美精品综合| 久热国产精品视频| 欧美亚男人的天堂| 欧美成人在线免费观看| 国产精品va在线播放| 欧美成年人视频| 国产精品毛片| 91久久综合亚洲鲁鲁五月天| 国产一本一道久久香蕉| 亚洲精品中文字幕在线| 国内揄拍国内精品少妇国语| 日韩一级免费| 在线播放日韩| 欧美一级久久久久久久大片| 一区二区三区久久| 久久久综合香蕉尹人综合网| 午夜精品福利一区二区三区av | 国产性猛交xxxx免费看久久| 亚洲日本免费| 亚洲成人原创| 欧美亚洲午夜视频在线观看| 制服丝袜亚洲播放| 欧美粗暴jizz性欧美20| 久久久国产精品一区二区中文| 欧美四级剧情无删版影片| 欧美激情在线狂野欧美精品| 国产一区二区无遮挡| 亚洲一区二区视频在线观看|