x86與x64系統引導過程

2021-04-01 11:19:11 字數 1928 閱讀 5417

1、機器上電自檢,完成裝置的列舉與配置

2、載入主引導記錄(mbr)並執行

3、讀活動分割槽中的引導分割槽到記憶體中,並執行

4、載入系統目錄下的ntldr——也就是系統的引導程式

5、ntldr初始化完成處理器模式切換和檔案系統(fat或ntfs)驅動載入,如果使用了scsi裝置,ntldr將ntbootdd.sys載入到記憶體中執行,然後讀取系統目錄下的boot.ini選擇載入系統

6、選擇完載入系統,ntldr開始硬體檢查(ntdetect.***)並呼叫系統的硬體配置檔案

7、載入核心ntoskrnl.exe和hal.dll,選擇控制集初始化計算機——載入低階裝置驅動

8、核心初始化,核心從ntldr處取得系統控制權,載入初始化裝置驅動程式,呼叫**ss.exe引導window子系統,包括w32k.sys和csrss.exe

9、啟動winlogon程序,啟動lsass(本地安全認證),執行scm(服務控制器管理),出現登入視窗

10、完成系統的引導過程

***ponent

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.***

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

hal.dll

protected mode with paging

kernel-mode dll that inte***ces ntoksnrl and drivers to the hardware.

**ss

loads windows subsystem, including win32k.sys and csrss.exe, and starts winlogon process.

winlogon

starts the service control manager (scm), starts the local security subsystem (lsass), and presents interactive logon dialog box.

service control manager (scm)

loads and initializes auto-start device drivers and windows services.

軟體安裝時x86與x64軟體區別

首先要明白他們是什麼意思!關於他們的解釋可以看這裡 這種問題沒必要多說,可以google一下去!可以這樣說,如果自己的電腦是近兩年買的,那麼一般都是x64,但是不排除老式的和部分現在電腦是32位式處理器。所以軟體安裝之前收錢確定自己的電腦是多少位的。可以使用cpu z軟體檢視,amd的應該是em64...

x86和x64下boost庫安裝與配置

1.網上 2.vs2015開發人員命令提示中執行bootstrap.bat 3.x86安裝則輸入命令 b2.exe prefix d boost x86 build type complete build dir build tmp toolset msvc 14.0 address model 3...

boost 分別編譯x86和x64的庫

2.vs2015開發人員命令提示中執行bootstrap.bat 3.x86安裝則輸入命令 b2.exe prefix d boost x86 build type complete build dir build tmp toolset msvc 14.0 address model 32 ins...