- 1、本文档共12页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
2000
!
Bootblock 1.4 - Minix boot block.
Author: Kees J. Bot
2001
!
21 Dec 1991
2002
!
2003
! When the PC is powered on, it will try to read the first sector of floppy
2004
! disk 0 at address 0x7C00. If this fails due to the absence of flexible
2005
! magnetic media, it will read the master boot record from the first sector
2006
! of the hard disk. This sector not only contains executable code, but also
2007
! the partition table of the hard disk. When executed, it will select the
2008
! active partition and load the first sector of that at address 0x7C00.
2009
! This file contains the code that is eventually read from either the floppy
2010
! disk, or the hard disk partition. It is just smart enough to load the
2011
! secondary boot code from the boot device into memory at address 0x10000 and
2012
! execute that. The disk addresses for this secondary boot code are patched
2013
! into this code by installboot as 24-bit sector numbers and 8-bit sector
2014
! counts above enddata upwards. The secondary boot code is in turn smart
2015
! enough to load the different parts of the Minix kernel into memory and
2016
! execute them to finally get Minix started.
当 PC 加电后,PC 试图读软盘 0 的第一扇区到 0x7C00。如果因为没有可用的磁介子而失败,
则它试图读从硬盘的第一个扇区读主引导记录(master boot record ),该扇区不仅包含可执行代码,也包含硬盘的分区表(DPT,partition table)。当他执行时,他将选择活动分区并他的第一个扇区到 0x7C00。
本文件包含最终从软盘或从硬盘分区读出的代码,它将从引导设备上加载次级引导代码到内存地址 0x10000 处,并执行他。次级引导代码在磁盘上的地址是由 installboot 将 24 位的扇区号和 8 位的扇区数(above enddata upwards)。次级引导代码也足够聪明,能够将MINIX 内核
的不同部分加载到内存,并执行他们直到最后使 Minix 启动。
2017 !
Its also important to know that dl contains the drive that was booted (in other words, the drive from which this code originated). This is 0x00 or 0x01 for the first or second floppy drives or 0x80, 0x81, 0x82, or 0x83 for the first through fourth hard drives.
If this code originated from a hard drive and the master boot code loaded this code, then the partition table entry that corresponds to the booted partition is passed in es:si.
0x80, 0x81, 0x82, or 0x83。
文档评论(0)