【译】x86程序员手册37-第10章 初始化
Chapter 10 Initialization
第10章 初始化
After a signal on the RESET pin, certain registers of the 80386 are set to predefined values. These values are adequate to enable execution of a bootstrap program, but additional initialization must be performed by software before all the features of the processor can be utilized.
在REST引脚发送信号后,80386的某些寄存器被设置为预定的值。这些值仅够用来执行启动(bootstrap)程序,但在所有的处理器特性可以被使用这衫,还必须由软件执行额外的初始化。
10.1 Processor State After Reset
重置后的处理器状态
The contents of EAX depend upon the results of the power-up self test. The self-test may be requested externally by assertion of BUSY# at the end of RESET. The EAX register holds zero if the 80386 passed the test. A nonzero value in EAX after self-test indicates that the particular 80386 unit is faulty. If the self-test is not requested, the contents of EAX after RESET is undefined.
EAX的内容取决于加电自检的结果。自检可以由外部要求,即在REST之后测试BUSY#。如果80386通过了自检,EAX中的值是0。自检后的非0值表明,80386的特定单元有错误。如果没有要求自检,REST之后的EAX中的值是未定义的。
DX holds a component identifier and revision number after RESET as Figure 10-1 illustrates. DH contains 3, which indicates an 80386 component. DL contains a unique identifier of the revision level.
REST之后,DX中值是组件的标识和版本号,见图10-1的解释。DH中包含3位80386的组件标识。DL中包含一个唯一的版本标识。

Control register zero (CR0) contains the values shown in Figure 10-2 . The ET bit of CR0 is set if an 80387 is present in the configuration (according to the state of the ERROR# pin after RESET). If ET is reset, the configuration either contains an 80287 or does not contain a coprocessor. A software test is required to distinguish between these latter two possibilities.
控制寄存器0(CR0)包含一个图10-2所示的值。如果配置(根据在REST之后,ERROR#的状态)中存在80387,则CR0的ET位被置位。如果ET被重置,配置要么包含一个80287,要么不包含协处理器。软件要通过测试来区分这二者的可能性。

The remaining registers and flags are set as follows:
剩余的寄存器和标志被设置成如下所示:
EFLAGS =00000002H
IP =0000FFF0H // 这里是BIOS开始的地方
CS selector =000H
DS selector =0000H
ES selector =0000H
SS selector =0000H
FS selector =0000H
GS selector =0000H
IDTR:
base =0
limit =03FFH
All registers not mentioned above are undefined.
所有上面没有提到的寄存器都是未定义状态。
These settings imply that the processor begins in real-address mode with interrupts disabled.
这些设置表明,处理器开始在关中断的实地址模式。
【译】x86程序员手册37-第10章 初始化的更多相关文章
- 【译】x86程序员手册01
		
Intel 80386 Reference Programmer's Manual 80386程序员参考手册 Chapter 1 -- Introduction to the 80386 第1章 - ...
 - 【译】x86程序员手册15-5.2页转换
		
5.2 Page Translation 页转换 In the second phase of address transformation, the 80386 transforms a linea ...
 - 【译】x86程序员手册12-4.2系统指令
		
4.2 Systems Instructions 系统指令 Systems instructions deal with such functions as: 系统指令具有以下功能: Verifica ...
 - 【译】x86程序员手册11- 4.1系统寄存器
		
4.1 Systems Registers 系统寄存器 The registers designed for use by systems programmers fall into these cl ...
 - 【译】x86程序员手册03 - 2.1内存组织和分段
		
2.1 Memory Organization and Segmentation 内存组织和分段 The physical memory of an 80386 system is organized ...
 - [译]Java 程序员应该了解的 10 个面向对象设计原则
		
面向对象设计原则是OOPS(Object-Oriented Programming System,面向对象的程序设计系统)编程的核心,但大多数Java程序员追逐像Singleton.Decorator ...
 - 【译】x86程序员手册10 - 第4章系统架构
		
1.1.2 Part II -- Systems Programming 系统编程 This part presents those aspects of the architecture that ...
 - 【译】x86程序员手册38-10.2实在址模式下的软件初始化
		
10.2 Software Initialization for Real-Address Mode 实地址模式的软件初始化 In real-address mode a few structur ...
 - 【译】x86程序员手册00 - 翻译起因
		
从上一次学习MIT的操作系统课程又过去了一年.上次学习并没有坚持下去.想来虽有种种原因,其还在自身无法坚持罢了.故此次再鼓起勇气重新学习,发现课程都已由2014改版为2016了.但大部分内容并没有改变 ...
 
随机推荐
- Vim升华之树形目录插件NERDTree安装图解【转】
			
本文转载自:http://www.linuxidc.com/Linux/2013-06/86048.htm 无意中看到实验室的朋友使用的vim竟然能在左边显示树形目录,感觉很方便,这样子文件夹有什么文 ...
 - Python3中 对local和nonlocal 关键字的改善认识(新手向)
			
nonlocal关键字用来在函数或其他作用域中使用外层(非全局)变量. nonlocal用于声明,修改嵌套作用域(enclosing 作用域,外层非全局作用域)中的变量,如下实例: #!/usr/bi ...
 - python-----用多张图片生成视频
			
代码如下 #!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019/2/19 16:42 # @Author : xiaodai # - ...
 - gdb core调试
			
原文链接 http://blog.163.com/lanka83/blog/static/32637615200801793020182/http://blog.csdn.net/taina2008/ ...
 - bzoj1566 [NOI2009]管道取珠——DP
			
题目:https://www.lydsy.com/JudgeOnline/problem.php?id=1566 一眼看上去很懵... 但是答案可以转化成有两个人在同时取珠子,他们取出来一样的方案数: ...
 - vue   随笔 vue 的属性和方法
			
新建的项目中main.js是项目的入口文件 npm run dev 运行文件 npm run bulid 编译 属性与方法 每个Vue实例都会代理其 data 对象里所有的属性: var data= ...
 - bzoj1101
			
1101: [POI2007]Zap Time Limit: 10 Sec Memory Limit: 162 MBSubmit: 2319 Solved: 936[Submit][Status] ...
 - node+ws模块实现websocket
			
先来吐槽一下,想要找点技术文章真tm不容易,全是jb复制粘贴,还冒充原创.搜索一个ws实现websocket全是一样的.一个字都没变,我能说什么.最后想到搜索ws模块githup居然前两页没有,也是那 ...
 - javascript监听值变化
			
最近面了有道前端实习,人品爆发一面过了.但是在一面中面试官问了一个问题”MVC用javascript如何实现?如果实现双向绑定?值变化监听?“ 当时我回答”js好像没函数进行值变化监听“ 后来想想很不 ...
 - Monkey Banana Problem LightOJ - 1004
			
Monkey Banana Problem LightOJ - 1004 错误记录: 1.数组开小2.每组数据数组没有清空 #include<cstdio> #include<cst ...