NoteZ icon indicating copy to clipboard operation
NoteZ copied to clipboard

NT4 Source Code Read

Open jmpews opened this issue 6 years ago • 0 comments

Prologue

Somniloquy

Refer

https://www.pediy.com/kssd/pediy12/141453.html

0x01.MBR 阶段

主MBR加载 WinNT4-master/private/ntos/boot/bootcode/mbr/i386/x86mboot.asm.

主要作用是, 判断校验分区类型, 并加载 WinNT4-master/private/ntos/boot/bootcode/fat/i386/fatboot.asmWinNT4-master/private/ntos/boot/bootcode/ntfs/i386/ntfsboot.asm 特定分区类型(only 1 sector)的 MBR 至 0x7c00 继续运行.

这里具体的流程的是首先由 BIOS 加载 x86mboot.asm0x7c00, 之后 x86mboot.asm 将自己重定位至一个临时(虽说临时, 但其实已经固定)区域(主要是为了让位给 fatboot.asm), 之后开始判断校验分区, 加载 fatboot.asm0x7c00, 之后跳转到 fatboot.asm 继续执行

jmpews avatar Mar 28 '18 07:03 jmpews