DragonOS/docs/kernel/boot/bootloader.md
2022-07-12 17:57:11 +08:00

19 lines
882 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 引导加载程序
## 原理
  目前DragonOS仅支持Legacy BIOS进行启动引导。
  `head.S`的头部包含了Multiboot2引导头里面标志了一些Multiboot2相关的特定信息以及一些配置命令。
  在DragonOS的启动初期会存储由GRUB2传来的magic number以及multiboot2_boot_info_addr。当系统进入`Start_Kernel`函数之后将会把这两个信息保存到multiboot2驱动程序之中。信息的具体含义请参照Multiboot2 Specification进行理解该部分难度不大相信读者经过思考能理解其中的原理。
## 未来发展方向
- 增加对UEFI启动的支持
## 参考资料
- [Multiboot2 Specification](http://git.savannah.gnu.org/cgit/grub.git/tree/doc/multiboot.texi?h=multiboot2)
- [GNU GRUB Manual 2.06](https://www.gnu.org/software/grub/manual/grub/grub.html)