freebsd之bios和boot
来源:互联网 发布:winpe 网络组件 编辑:程序博客网 时间:2024/05/22 07:05
// initialization with biso
set eip, 0xfffffff0 // points to code to be executed by the processor.
// if (physic memory < 4G) hardware translate to BIOS memory block, jmp POST;
// POST(power on self test): memory check, system bus check, low-level initialization, select boot device
// int 0x19: the int 0x19 handler reads 512 bytes from the first sector of boot device into the memory at address 0x7c00
set cr0, 0 // control register cr0's PE bit, indicates whether the processor is run.ning in 32-bit protected mode or 16-bit real mode
// | pg | 000000000000000 | 00000000000 | et | ts | em | mp | pe | cr 0.
// current running in real mode, because backwards compatibility / bios running in real mode / service provided bios
// mbr program
// boot0 copy itself to address 0x600
// boot0.s complile as boot.img (master boot record)
// boot0 scan partition stable, let the user choose which partition to boot from.
mbr(master boot record) struct:
0 440 444 446 510 512
| code |flag|null| dpt info|flag|
| | |
(select disk flag) | (vaild flag)
|
(1 1 6 8 byte)
_______________________________
(descriptor table information)
1 |
f1|f2| chs format | lba format
|
2 | ... |
3 | ... |
4 |
_______________________________|
f1(file system type) f2(bootable flag)
chs(sylinder/head/sector): first and last coordinates (end with 0xaa55).
lba(logic block addr): partition stable start position and length
(end with 0xaa55)
.
- freebsd之bios和boot
- BIOS boot
- FreeBSD和Linux之比较
- FreeBSD和Linux之比较
- UEFI、BIOS、Secure Boot的关系和知识介绍
- UEFI、BIOS、Secure Boot的关系和知识介绍
- 关于BIOS BOOT Spec
- 配置Bios Boot Loader
- Boot Loader && BIOS
- BOOT BIOS UEFI
- BIOS+MBR和EFI+GPT之我见
- WINCE BIOS BOOT LOADER方法
- Terms from BIOS boot spec
- 戏说BIOS之Hello BIOS
- BIOS学习之Beyong Bios
- freebsd扫盲之mysql安装、启动、重启和设置
- FreeBSD _ /boot/loader.conf +backup
- Intel Boot Agent BIOS image utility - IBABUILD
- PHP学习(七)--分支结构
- 阿里云 mysql的远程访问问题
- QtCreator-----设置编码
- nyoj-Color the necklace(Ploya定理 + 欧拉函数 + 扩展欧几里得(求逆元))
- <tx:method/> 有关的设置
- freebsd之bios和boot
- ibatis学习总结
- CSS学习(十二)-文本换行符
- openbmp
- Chisel LLDB 加强工具
- 51NOD OJ 活动安排类问题
- 最小点覆盖 poj3041 Asteroids
- “笨办法学python”学习笔记-一些附加题
- Mysql插件HandlerSocket的应用