x86与x64系统引导过程

1、机器上电自检,完成设备的枚举与配置

2、加载主引导记录(MBR)并运行

3、读活动分区中的引导分区到内存中,并运行

4、加载系统目录下的Ntldr——也就是系统的加载程序

5、Ntldr初始化完成处理器模式切换和文件系统(FATNTFS)驱动加载,如果使用了SCSI设备,NtldrNtbootdd.sys加载到内存中运行,然后读取系统目录下的Boot.ini选择加载系统

6、选择完加载系统,Ntldr开始硬件检查(Ntdetect.com)并调用系统的硬件配置文件

7、加载内核Ntoskrnl.exe和HAL.dll,选择控制集初始化计算机——加载低级设备驱动

8、内核初始化,内核从Ntldr处取得系统控制权,加载初始化设备驱动程序,调用SMSS.exe引导Window子系统,包括w32k.sys和Csrss.exe

9、启动Winlogon进程,启动LSASS(本地安全认证),执行SCM(服务控制器管理),出现登录窗口

10、完成系统的引导过程

下面是系统引导过程的一些部件详细资料(摘自Microsoft® Windows® Internals, Fourth Edition: Microsoft Windows Server™ 2003, Windows XP, and Windows 2000)供大家参考

Component

Processor Execution

Responsibilities

Master Boot Record (MBR) code

16-bit real mode

Reads and loads partition boot sectors.

Boot sector

16-bit real mode

Reads the root directory to load Ntldr.

Ntldr

16-bit real mode and 32-bit or 64-bit protected mode; turns on paging

Reads Boot.ini, presents boot menu, and loads Ntoskrnl.exe, Bootvid.dll, Hal.dll, and boot-start device drivers. If a 32-bit installation is booted, switches to 32-bit protected mode; if a 64-bit installation is booted, switches to 64-bit long mode.

Ntdetect.com

16-bit real mode

Performs hardware detection for Ntldr.

Ntbootdd.sys

Protected mode

Device driver used for disk I/O on SCSI and Advanced Technology Attachment (ATA) systems where the BIOS is not used.

Ntoskrnl.exe

Protected mode with paging

Initializes executive subsystems and boot and system-start device drivers, prepares the system for running native applications, and runs Smss.exe.

Hal.dll

Protected mode with paging

Kernel-mode DLL that interfaces Ntoksnrl and drivers to the hardware.

Smss

Native application

Loads Windows subsystem, including Win32k.sys and Csrss.exe, and starts Winlogon process.

Winlogon

Native application

Starts the service control manager (SCM), starts the Local Security Subsystem (LSASS), and presents interactive logon dialog box.

Service control manager (SCM)

Native application

Loads and initializes auto-start device drivers and Windows services.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值