Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lad dev #20

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Lad dev #20

wants to merge 5 commits into from

Conversation

qqxlt
Copy link

@qqxlt qqxlt commented Jan 22, 2018

Add setup.s instruction

Copy link
Contributor

@keven2116 keven2116 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.请根据提交规范重新命名文件。
2.标题格式参考已提交的章节。
3.代码注释太多是否考虑加入部分流程图?
4.文中有部分错别字以及语句不通顺的地方,请写完后多阅读几次。
5.内容部分的描述如果有参考,请附上参考链接。


# bootsect.s 程序

## 1. Linux0.11内核启动过程概述
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

标题可以省略 Linux 0.11 ,越精简越好。

# bootsect.s 程序

## 1. Linux0.11内核启动过程概述
1. 当PC的电源打开后,80x86结构的CPU将进入实模式,并从地址0XFFFF0开始自动执行。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PC? 是否可以用更加清晰的描述词?

bootsect.s 是磁盘引导块程序,驻留在磁盘的第一个扇区中(引导扇区,0磁道,0磁头,第一个扇区)。自然 bootsect.s 就是在内存中首先运行的程序。


## 1.1 bootsect.s 程序分析
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

标题的 数字标识统一去掉! 可参考已提交的文档

56 jmpi go,INITSEG ! 间接跳转。ip指针为go标号的地址(段内偏移地址),cs=INITSEG=0x9000,
! 这里 INITSEG 指跳转到的段地址。
```
此部分主要实现的功能是将bootsect代码所在的内存0x7c00处,移动到内存0x90000处,每次移动1个字,循环搬移256次,即bootsect代码从内存0x7c00处512字节代码拷贝到内存0x90000处。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

描述不清晰,语句不通顺。

```

此部分的功能为
- 利用 BIOS 中断 INT 0x13 将 setup 模块从磁盘第2个扇区开始读到0x90200地址(es:bx=0x9000:0x200)开始处,共读4 个扇区。如果读出错,则复位驱动器,并重试,没有退路。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BIOS 中断?

Copy link
Contributor

@keven2116 keven2116 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

请修正这个提交?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants