Skip to content

Commit b8fffec

Browse files
committed
update 2020-03-05
1 parent 79f9ab6 commit b8fffec

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+3293
-116
lines changed

README.md

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,20 @@
22

33
由于本文档还不稳定,有时会有更新,更新信息会第一时间放在这里。由于文档不稳定引起的问题不会导致扣分。
44

5-
> **[info] 最后更新日期:2020-03-04**
5+
> **[info] 最后更新日期:2020-03-05**
6+
>
67
> **2020-03-05**
7-
>
8-
> 更新了练习三的文档
9-
>
8+
>
9+
> 为了显得很轻量级,在首页更新了目前的总代码行数。
10+
>
11+
> 正文方面:新增了第九章第四小节作为练习八的基础,同时在第九章 intro 部分上传了 rCore 和 xv6 文件系统的分析文档。
12+
>
13+
> 练习方面:
14+
>
15+
> 在练习五的描述中,将 ``sys_fork`` 的 syscall id 设定为 $$220$$
16+
>
17+
> 重写了练习八,新增了练习八的测试程序。
18+
>
1019
> **2020-03-04**
1120
>
1221
> 调换了练习五和练习六的顺序。
@@ -47,6 +56,25 @@
4756

4857
这是一个展示如何从零开始用 Rust 语言写一个基于 64 位 RISC-V 架构的操作系统的教程。完成这个教程后,你将可以在内核上运行用户态终端,并在终端内输入命令运行其他程序。
4958

59+
我们很轻量级!截至目前的代码行数分布(ch9-pa4分支)为:
60+
61+
```
62+
-------------------------------------------------------------------------------
63+
Language files blank comment code
64+
-------------------------------------------------------------------------------
65+
Rust 42 315 21 2178
66+
D 120 256 0 633
67+
Assembly 4 16 2 185
68+
JSON 116 0 0 116
69+
Markdown 1 4 0 55
70+
make 2 17 0 54
71+
TOML 2 5 2 22
72+
Bourne Shell 1 0 0 1
73+
-------------------------------------------------------------------------------
74+
SUM: 288 613 25 3244
75+
-------------------------------------------------------------------------------
76+
```
77+
5078
## 代码仓库
5179

5280
左侧章节目录中含有一对方括号"[ ]"的小节表示这是一个存档点,即这一节要对最近几节的代码进行测试。所以我们对每个存档点都设置了一个 commit 保存其完整的状态以供出现问题时参考。
@@ -63,4 +91,5 @@
6391

6492
对于章节内容有任何疑问及建议,请在对应页面最下面的评论区中发表观点。注意需要用 Github ID 登录后才能评论。
6593

94+
##
6695
好了,那就让我们正式开始!

SUMMARY.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@
5959
- [[使用文件系统]](chapter9/part1.md)
6060
- [[实现记事本]](chapter9/part2.md)
6161
- [[实现终端]](chapter9/part3.md)
62-
- [总结与展望](chapter9/part4.md)
62+
- [[文件读写]](chapter9/part4.md)
63+
- [总结与展望](chapter9/part5.md)
6364
- [第十章:同步互斥](chapter10/introduction.md)
6465
<!-- - [第十三章:进程管理:fork and execute](chapter13/introduction.md)
6566
- [fork 介绍](chapter13/part1.md)

backup.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
sudo rm -r ../rCore_tutorial_doc_backup
2+
sudo cp -r ../rCore_tutorial_doc ../rCore_tutorial_doc_backup
3+
749 KB
Binary file not shown.

chapter9/figures/xv6_fs_analysis.pdf

933 KB
Binary file not shown.

chapter9/introduction.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@
1010
- 如何实现线程的阻塞与唤醒
1111
- 用缓冲区描述标准输入,并利用线程阻塞提高 CPU 利用率
1212
- 实现用户态终端程序
13+
14+
## 参考资料
15+
1. [rCore 文件系统分析](figures/rcore_fs_analysis.pdf)
16+
2. [xv6 文件系统分析](figures/xv6_fs_analysis.pdf)

0 commit comments

Comments
 (0)