修改结构

This commit is contained in:
duguosheng
2021-08-18 22:39:02 +08:00
parent d8a89f1774
commit a172819ed8
15 changed files with 610 additions and 12 deletions

View File

@@ -12,4 +12,4 @@
* [1.4 文件系统](tranlate_books/book-riscv-rev1/c1/s1_4.md)
* [1.5 真实世界](tranlate_books/book-riscv-rev1/c1/s1_5.md)
* [1.6 练习](tranlate_books/book-riscv-rev1/c1/s1_6.md)
* [第二章 操作系统架构](tranlate_books/book-riscv-rev1/c2/s2_0.md)

View File

@@ -0,0 +1,11 @@
(function() {
var newEl = document.createElement('script'),
firstScriptTag = document.getElementsByTagName('script')[0];
if (firstScriptTag) {
newEl.async = 1;
newEl.src = '//' + window.location.hostname + ':35729/livereload.js';
firstScriptTag.parentNode.insertBefore(newEl, firstScriptTag);
}
})();

View File

@@ -238,6 +238,19 @@
</ul>
</li>
<li class="chapter " data-level="2.1.2" data-path="tranlate_books/book-riscv-rev1/c2/s2_0.html">
<a href="tranlate_books/book-riscv-rev1/c2/s2_0.html">
第二章 操作系统架构
</a>
</li>
@@ -341,7 +354,7 @@
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"课程介绍","level":"1.1","depth":1,"next":{"title":"book-riscv-rev1","level":"2.1","depth":1,"path":"tranlate_books/book-riscv-rev1/summary.md","ref":"tranlate_books/book-riscv-rev1/summary.md","articles":[{"title":"第一章 操作系统接口","level":"2.1.1","depth":2,"path":"tranlate_books/book-riscv-rev1/c1/s1_0.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_0.md","articles":[{"title":"1.1 进程和内存","level":"2.1.1.1","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_1.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_1.md","articles":[]},{"title":"1.2 I/O和文件描述符","level":"2.1.1.2","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_2.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_2.md","articles":[]},{"title":"1.3 管道","level":"2.1.1.3","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_3.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_3.md","articles":[]},{"title":"1.4 文件系统","level":"2.1.1.4","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_4.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_4.md","articles":[]},{"title":"1.5 真实世界","level":"2.1.1.5","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_5.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_5.md","articles":[]},{"title":"1.6 练习","level":"2.1.1.6","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_6.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_6.md","articles":[]}]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["chapter-fold","code","splitter","pageview-count","donate"],"pluginsConfig":{"chapter-fold":{},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"donate":{"alipay":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/alipay.png","alipayText":"支付宝","button":"打赏","title":"","wechat":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/wechatpay.png","wechatText":"微信"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"pageview-count":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"README.md","mtime":"2021-08-18T13:31:50.289Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-08-18T14:27:07.263Z"},"basePath":".","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"课程介绍","level":"1.1","depth":1,"next":{"title":"book-riscv-rev1","level":"2.1","depth":1,"path":"tranlate_books/book-riscv-rev1/summary.md","ref":"tranlate_books/book-riscv-rev1/summary.md","articles":[{"title":"第一章 操作系统接口","level":"2.1.1","depth":2,"path":"tranlate_books/book-riscv-rev1/c1/s1_0.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_0.md","articles":[{"title":"1.1 进程和内存","level":"2.1.1.1","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_1.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_1.md","articles":[]},{"title":"1.2 I/O和文件描述符","level":"2.1.1.2","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_2.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_2.md","articles":[]},{"title":"1.3 管道","level":"2.1.1.3","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_3.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_3.md","articles":[]},{"title":"1.4 文件系统","level":"2.1.1.4","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_4.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_4.md","articles":[]},{"title":"1.5 真实世界","level":"2.1.1.5","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_5.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_5.md","articles":[]},{"title":"1.6 练习","level":"2.1.1.6","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_6.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_6.md","articles":[]}]},{"title":"第二章 操作系统架构","level":"2.1.2","depth":2,"path":"tranlate_books/book-riscv-rev1/c2/s2_0.md","ref":"tranlate_books/book-riscv-rev1/c2/s2_0.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["chapter-fold","code","splitter","pageview-count","donate","livereload"],"pluginsConfig":{"chapter-fold":{},"livereload":{},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"donate":{"alipay":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/alipay.png","alipayText":"支付宝","button":"打赏","title":"","wechat":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/wechatpay.png","wechatText":"微信"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"pageview-count":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"README.md","mtime":"2021-08-18T13:31:50.289Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-08-18T14:37:37.699Z"},"basePath":".","book":{"language":""}});
});
</script>
</div>
@@ -371,6 +384,10 @@
<script src="gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="gitbook/gitbook-plugin-search/search-engine.js"></script>

File diff suppressed because one or more lines are too long

View File

@@ -240,6 +240,19 @@
</ul>
</li>
<li class="chapter " data-level="2.1.2" data-path="../c2/s2_0.html">
<a href="../c2/s2_0.html">
第二章 操作系统架构
</a>
</li>
@@ -442,7 +455,7 @@
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"第一章 操作系统接口","level":"2.1.1","depth":2,"next":{"title":"1.1 进程和内存","level":"2.1.1.1","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_1.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_1.md","articles":[]},"previous":{"title":"book-riscv-rev1","level":"2.1","depth":1,"path":"tranlate_books/book-riscv-rev1/summary.md","ref":"tranlate_books/book-riscv-rev1/summary.md","articles":[{"title":"第一章 操作系统接口","level":"2.1.1","depth":2,"path":"tranlate_books/book-riscv-rev1/c1/s1_0.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_0.md","articles":[{"title":"1.1 进程和内存","level":"2.1.1.1","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_1.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_1.md","articles":[]},{"title":"1.2 I/O和文件描述符","level":"2.1.1.2","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_2.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_2.md","articles":[]},{"title":"1.3 管道","level":"2.1.1.3","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_3.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_3.md","articles":[]},{"title":"1.4 文件系统","level":"2.1.1.4","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_4.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_4.md","articles":[]},{"title":"1.5 真实世界","level":"2.1.1.5","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_5.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_5.md","articles":[]},{"title":"1.6 练习","level":"2.1.1.6","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_6.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_6.md","articles":[]}]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["chapter-fold","code","splitter","pageview-count","donate"],"pluginsConfig":{"chapter-fold":{},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"donate":{"alipay":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/alipay.png","alipayText":"支付宝","button":"打赏","title":"","wechat":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/wechatpay.png","wechatText":"微信"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"pageview-count":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"tranlate_books/book-riscv-rev1/c1/s1_0.md","mtime":"2021-08-18T03:53:50.528Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-08-18T14:27:07.263Z"},"basePath":"../../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"第一章 操作系统接口","level":"2.1.1","depth":2,"next":{"title":"1.1 进程和内存","level":"2.1.1.1","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_1.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_1.md","articles":[]},"previous":{"title":"book-riscv-rev1","level":"2.1","depth":1,"path":"tranlate_books/book-riscv-rev1/summary.md","ref":"tranlate_books/book-riscv-rev1/summary.md","articles":[{"title":"第一章 操作系统接口","level":"2.1.1","depth":2,"path":"tranlate_books/book-riscv-rev1/c1/s1_0.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_0.md","articles":[{"title":"1.1 进程和内存","level":"2.1.1.1","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_1.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_1.md","articles":[]},{"title":"1.2 I/O和文件描述符","level":"2.1.1.2","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_2.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_2.md","articles":[]},{"title":"1.3 管道","level":"2.1.1.3","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_3.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_3.md","articles":[]},{"title":"1.4 文件系统","level":"2.1.1.4","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_4.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_4.md","articles":[]},{"title":"1.5 真实世界","level":"2.1.1.5","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_5.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_5.md","articles":[]},{"title":"1.6 练习","level":"2.1.1.6","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_6.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_6.md","articles":[]}]},{"title":"第二章 操作系统架构","level":"2.1.2","depth":2,"path":"tranlate_books/book-riscv-rev1/c2/s2_0.md","ref":"tranlate_books/book-riscv-rev1/c2/s2_0.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["chapter-fold","code","splitter","pageview-count","donate","livereload"],"pluginsConfig":{"chapter-fold":{},"livereload":{},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"donate":{"alipay":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/alipay.png","alipayText":"支付宝","button":"打赏","title":"","wechat":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/wechatpay.png","wechatText":"微信"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"pageview-count":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"tranlate_books/book-riscv-rev1/c1/s1_0.md","mtime":"2021-08-18T03:53:50.528Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-08-18T14:37:37.699Z"},"basePath":"../../..","book":{"language":""}});
});
</script>
</div>
@@ -472,6 +485,10 @@
<script src="../../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../../gitbook/gitbook-plugin-search/search-engine.js"></script>

View File

@@ -240,6 +240,19 @@
</ul>
</li>
<li class="chapter " data-level="2.1.2" data-path="../c2/s2_0.html">
<a href="../c2/s2_0.html">
第二章 操作系统架构
</a>
</li>
@@ -371,7 +384,7 @@ exec(<span class="hljs-string">&quot;/bin/echo&quot;</span>, argv);
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"1.1 进程和内存","level":"2.1.1.1","depth":3,"next":{"title":"1.2 I/O和文件描述符","level":"2.1.1.2","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_2.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_2.md","articles":[]},"previous":{"title":"第一章 操作系统接口","level":"2.1.1","depth":2,"path":"tranlate_books/book-riscv-rev1/c1/s1_0.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_0.md","articles":[{"title":"1.1 进程和内存","level":"2.1.1.1","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_1.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_1.md","articles":[]},{"title":"1.2 I/O和文件描述符","level":"2.1.1.2","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_2.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_2.md","articles":[]},{"title":"1.3 管道","level":"2.1.1.3","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_3.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_3.md","articles":[]},{"title":"1.4 文件系统","level":"2.1.1.4","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_4.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_4.md","articles":[]},{"title":"1.5 真实世界","level":"2.1.1.5","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_5.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_5.md","articles":[]},{"title":"1.6 练习","level":"2.1.1.6","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_6.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_6.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["chapter-fold","code","splitter","pageview-count","donate"],"pluginsConfig":{"chapter-fold":{},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"donate":{"alipay":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/alipay.png","alipayText":"支付宝","button":"打赏","title":"","wechat":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/wechatpay.png","wechatText":"微信"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"pageview-count":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"tranlate_books/book-riscv-rev1/c1/s1_1.md","mtime":"2021-08-18T03:55:13.408Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-08-18T14:27:07.263Z"},"basePath":"../../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"1.1 进程和内存","level":"2.1.1.1","depth":3,"next":{"title":"1.2 I/O和文件描述符","level":"2.1.1.2","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_2.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_2.md","articles":[]},"previous":{"title":"第一章 操作系统接口","level":"2.1.1","depth":2,"path":"tranlate_books/book-riscv-rev1/c1/s1_0.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_0.md","articles":[{"title":"1.1 进程和内存","level":"2.1.1.1","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_1.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_1.md","articles":[]},{"title":"1.2 I/O和文件描述符","level":"2.1.1.2","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_2.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_2.md","articles":[]},{"title":"1.3 管道","level":"2.1.1.3","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_3.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_3.md","articles":[]},{"title":"1.4 文件系统","level":"2.1.1.4","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_4.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_4.md","articles":[]},{"title":"1.5 真实世界","level":"2.1.1.5","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_5.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_5.md","articles":[]},{"title":"1.6 练习","level":"2.1.1.6","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_6.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_6.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["chapter-fold","code","splitter","pageview-count","donate","livereload"],"pluginsConfig":{"chapter-fold":{},"livereload":{},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"donate":{"alipay":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/alipay.png","alipayText":"支付宝","button":"打赏","title":"","wechat":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/wechatpay.png","wechatText":"微信"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"pageview-count":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"tranlate_books/book-riscv-rev1/c1/s1_1.md","mtime":"2021-08-18T03:55:13.408Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-08-18T14:37:37.699Z"},"basePath":"../../..","book":{"language":""}});
});
</script>
</div>
@@ -401,6 +414,10 @@ exec(<span class="hljs-string">&quot;/bin/echo&quot;</span>, argv);
<script src="../../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../../gitbook/gitbook-plugin-search/search-engine.js"></script>

View File

@@ -240,6 +240,19 @@
</ul>
</li>
<li class="chapter " data-level="2.1.2" data-path="../c2/s2_0.html">
<a href="../c2/s2_0.html">
第二章 操作系统架构
</a>
</li>
@@ -420,7 +433,7 @@ write(fd, <span class="hljs-string">&quot;world\n&quot;</span>, <span class="hlj
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"1.2 I/O和文件描述符","level":"2.1.1.2","depth":3,"next":{"title":"1.3 管道","level":"2.1.1.3","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_3.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_3.md","articles":[]},"previous":{"title":"1.1 进程和内存","level":"2.1.1.1","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_1.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_1.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["chapter-fold","code","splitter","pageview-count","donate"],"pluginsConfig":{"chapter-fold":{},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"donate":{"alipay":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/alipay.png","alipayText":"支付宝","button":"打赏","title":"","wechat":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/wechatpay.png","wechatText":"微信"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"pageview-count":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"tranlate_books/book-riscv-rev1/c1/s1_2.md","mtime":"2021-08-18T03:58:39.016Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-08-18T14:27:07.263Z"},"basePath":"../../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"1.2 I/O和文件描述符","level":"2.1.1.2","depth":3,"next":{"title":"1.3 管道","level":"2.1.1.3","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_3.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_3.md","articles":[]},"previous":{"title":"1.1 进程和内存","level":"2.1.1.1","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_1.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_1.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["chapter-fold","code","splitter","pageview-count","donate","livereload"],"pluginsConfig":{"chapter-fold":{},"livereload":{},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"donate":{"alipay":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/alipay.png","alipayText":"支付宝","button":"打赏","title":"","wechat":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/wechatpay.png","wechatText":"微信"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"pageview-count":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"tranlate_books/book-riscv-rev1/c1/s1_2.md","mtime":"2021-08-18T03:58:39.016Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-08-18T14:37:37.699Z"},"basePath":"../../..","book":{"language":""}});
});
</script>
</div>
@@ -450,6 +463,10 @@ write(fd, <span class="hljs-string">&quot;world\n&quot;</span>, <span class="hlj
<script src="../../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../../gitbook/gitbook-plugin-search/search-engine.js"></script>

View File

@@ -240,6 +240,19 @@
</ul>
</li>
<li class="chapter " data-level="2.1.2" data-path="../c2/s2_0.html">
<a href="../c2/s2_0.html">
第二章 操作系统架构
</a>
</li>
@@ -376,7 +389,7 @@ pipe(p);
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"1.3 管道","level":"2.1.1.3","depth":3,"next":{"title":"1.4 文件系统","level":"2.1.1.4","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_4.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_4.md","articles":[]},"previous":{"title":"1.2 I/O和文件描述符","level":"2.1.1.2","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_2.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_2.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["chapter-fold","code","splitter","pageview-count","donate"],"pluginsConfig":{"chapter-fold":{},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"donate":{"alipay":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/alipay.png","alipayText":"支付宝","button":"打赏","title":"","wechat":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/wechatpay.png","wechatText":"微信"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"pageview-count":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"tranlate_books/book-riscv-rev1/c1/s1_3.md","mtime":"2021-08-18T04:01:58.429Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-08-18T14:27:07.263Z"},"basePath":"../../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"1.3 管道","level":"2.1.1.3","depth":3,"next":{"title":"1.4 文件系统","level":"2.1.1.4","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_4.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_4.md","articles":[]},"previous":{"title":"1.2 I/O和文件描述符","level":"2.1.1.2","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_2.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_2.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["chapter-fold","code","splitter","pageview-count","donate","livereload"],"pluginsConfig":{"chapter-fold":{},"livereload":{},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"donate":{"alipay":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/alipay.png","alipayText":"支付宝","button":"打赏","title":"","wechat":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/wechatpay.png","wechatText":"微信"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"pageview-count":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"tranlate_books/book-riscv-rev1/c1/s1_3.md","mtime":"2021-08-18T04:01:58.429Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-08-18T14:37:37.699Z"},"basePath":"../../..","book":{"language":""}});
});
</script>
</div>
@@ -406,6 +419,10 @@ pipe(p);
<script src="../../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../../gitbook/gitbook-plugin-search/search-engine.js"></script>

View File

@@ -240,6 +240,19 @@
</ul>
</li>
<li class="chapter " data-level="2.1.2" data-path="../c2/s2_0.html">
<a href="../c2/s2_0.html">
第二章 操作系统架构
</a>
</li>
@@ -387,7 +400,7 @@ unlink(<span class="hljs-string">&quot;/tmp/xyz&quot;</span>);
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"1.4 文件系统","level":"2.1.1.4","depth":3,"next":{"title":"1.5 真实世界","level":"2.1.1.5","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_5.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_5.md","articles":[]},"previous":{"title":"1.3 管道","level":"2.1.1.3","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_3.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_3.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["chapter-fold","code","splitter","pageview-count","donate"],"pluginsConfig":{"chapter-fold":{},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"donate":{"alipay":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/alipay.png","alipayText":"支付宝","button":"打赏","title":"","wechat":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/wechatpay.png","wechatText":"微信"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"pageview-count":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"tranlate_books/book-riscv-rev1/c1/s1_4.md","mtime":"2021-08-18T04:04:10.367Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-08-18T14:27:07.263Z"},"basePath":"../../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"1.4 文件系统","level":"2.1.1.4","depth":3,"next":{"title":"1.5 真实世界","level":"2.1.1.5","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_5.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_5.md","articles":[]},"previous":{"title":"1.3 管道","level":"2.1.1.3","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_3.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_3.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["chapter-fold","code","splitter","pageview-count","donate","livereload"],"pluginsConfig":{"chapter-fold":{},"livereload":{},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"donate":{"alipay":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/alipay.png","alipayText":"支付宝","button":"打赏","title":"","wechat":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/wechatpay.png","wechatText":"微信"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"pageview-count":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"tranlate_books/book-riscv-rev1/c1/s1_4.md","mtime":"2021-08-18T04:04:10.367Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-08-18T14:37:37.699Z"},"basePath":"../../..","book":{"language":""}});
});
</script>
</div>
@@ -417,6 +430,10 @@ unlink(<span class="hljs-string">&quot;/tmp/xyz&quot;</span>);
<script src="../../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../../gitbook/gitbook-plugin-search/search-engine.js"></script>

View File

@@ -240,6 +240,19 @@
</ul>
</li>
<li class="chapter " data-level="2.1.2" data-path="../c2/s2_0.html">
<a href="../c2/s2_0.html">
第二章 操作系统架构
</a>
</li>
@@ -342,7 +355,7 @@
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"1.5 真实世界","level":"2.1.1.5","depth":3,"next":{"title":"1.6 练习","level":"2.1.1.6","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_6.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_6.md","articles":[]},"previous":{"title":"1.4 文件系统","level":"2.1.1.4","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_4.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_4.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["chapter-fold","code","splitter","pageview-count","donate"],"pluginsConfig":{"chapter-fold":{},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"donate":{"alipay":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/alipay.png","alipayText":"支付宝","button":"打赏","title":"","wechat":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/wechatpay.png","wechatText":"微信"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"pageview-count":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"tranlate_books/book-riscv-rev1/c1/s1_5.md","mtime":"2021-08-18T04:05:11.270Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-08-18T14:27:07.263Z"},"basePath":"../../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"1.5 真实世界","level":"2.1.1.5","depth":3,"next":{"title":"1.6 练习","level":"2.1.1.6","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_6.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_6.md","articles":[]},"previous":{"title":"1.4 文件系统","level":"2.1.1.4","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_4.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_4.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["chapter-fold","code","splitter","pageview-count","donate","livereload"],"pluginsConfig":{"chapter-fold":{},"livereload":{},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"donate":{"alipay":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/alipay.png","alipayText":"支付宝","button":"打赏","title":"","wechat":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/wechatpay.png","wechatText":"微信"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"pageview-count":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"tranlate_books/book-riscv-rev1/c1/s1_5.md","mtime":"2021-08-18T04:05:11.270Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-08-18T14:37:37.699Z"},"basePath":"../../..","book":{"language":""}});
});
</script>
</div>
@@ -372,6 +385,10 @@
<script src="../../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../../gitbook/gitbook-plugin-search/search-engine.js"></script>

View File

@@ -77,6 +77,8 @@
<link rel="shortcut icon" href="../../../gitbook/images/favicon.ico" type="image/x-icon">
<link rel="next" href="../c2/s2_0.html" />
<link rel="prev" href="s1_5.html" />
@@ -238,6 +240,19 @@
</ul>
</li>
<li class="chapter " data-level="2.1.2" data-path="../c2/s2_0.html">
<a href="../c2/s2_0.html">
第二章 操作系统架构
</a>
</li>
@@ -319,11 +334,15 @@
<a href="s1_5.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: 1.5 真实世界">
<a href="s1_5.html" class="navigation navigation-prev " aria-label="Previous page: 1.5 真实世界">
<i class="fa fa-angle-left"></i>
</a>
<a href="../c2/s2_0.html" class="navigation navigation-next " aria-label="Next page: 第二章 操作系统架构">
<i class="fa fa-angle-right"></i>
</a>
</div>
@@ -331,7 +350,7 @@
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"1.6 练习","level":"2.1.1.6","depth":3,"previous":{"title":"1.5 真实世界","level":"2.1.1.5","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_5.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_5.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["chapter-fold","code","splitter","pageview-count","donate"],"pluginsConfig":{"chapter-fold":{},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"donate":{"alipay":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/alipay.png","alipayText":"支付宝","button":"打赏","title":"","wechat":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/wechatpay.png","wechatText":"微信"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"pageview-count":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"tranlate_books/book-riscv-rev1/c1/s1_6.md","mtime":"2021-08-18T04:05:39.863Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-08-18T14:27:07.263Z"},"basePath":"../../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"1.6 练习","level":"2.1.1.6","depth":3,"next":{"title":"第二章 操作系统架构","level":"2.1.2","depth":2,"path":"tranlate_books/book-riscv-rev1/c2/s2_0.md","ref":"tranlate_books/book-riscv-rev1/c2/s2_0.md","articles":[]},"previous":{"title":"1.5 真实世界","level":"2.1.1.5","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_5.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_5.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["chapter-fold","code","splitter","pageview-count","donate","livereload"],"pluginsConfig":{"chapter-fold":{},"livereload":{},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"donate":{"alipay":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/alipay.png","alipayText":"支付宝","button":"打赏","title":"","wechat":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/wechatpay.png","wechatText":"微信"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"pageview-count":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"tranlate_books/book-riscv-rev1/c1/s1_6.md","mtime":"2021-08-18T04:05:39.863Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-08-18T14:37:37.699Z"},"basePath":"../../..","book":{"language":""}});
});
</script>
</div>
@@ -361,6 +380,10 @@
<script src="../../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../../gitbook/gitbook-plugin-search/search-engine.js"></script>

View File

@@ -0,0 +1,410 @@
<!DOCTYPE HTML>
<html lang="" >
<head>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>第二章 操作系统架构 · GitBook</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="">
<meta name="generator" content="GitBook 3.2.3">
<link rel="stylesheet" href="../../../gitbook/style.css">
<link rel="stylesheet" href="../../../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
<link rel="stylesheet" href="../../../gitbook/gitbook-plugin-code/plugin.css">
<link rel="stylesheet" href="../../../gitbook/gitbook-plugin-splitter/splitter.css">
<link rel="stylesheet" href="../../../gitbook/gitbook-plugin-pageview-count/plugin.css">
<link rel="stylesheet" href="../../../gitbook/gitbook-plugin-donate/plugin.css">
<link rel="stylesheet" href="../../../gitbook/gitbook-plugin-highlight/website.css">
<link rel="stylesheet" href="../../../gitbook/gitbook-plugin-search/search.css">
<link rel="stylesheet" href="../../../gitbook/gitbook-plugin-fontsettings/website.css">
<meta name="HandheldFriendly" content="true"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../../gitbook/images/apple-touch-icon-precomposed-152.png">
<link rel="shortcut icon" href="../../../gitbook/images/favicon.ico" type="image/x-icon">
<link rel="prev" href="../c1/s1_6.html" />
</head>
<body>
<div class="book">
<div class="book-summary">
<div id="book-search-input" role="search">
<input type="text" placeholder="Type to search" />
</div>
<nav role="navigation">
<ul class="summary">
<li class="header">Summary</li>
<li class="chapter " data-level="1.1" data-path="../../../">
<a href="../../../">
课程介绍
</a>
</li>
<li class="header">文档翻译</li>
<li class="chapter " data-level="2.1" data-path="../summary.html">
<a href="../summary.html">
book-riscv-rev1
</a>
<ul class="articles">
<li class="chapter " data-level="2.1.1" data-path="../c1/s1_0.html">
<a href="../c1/s1_0.html">
第一章 操作系统接口
</a>
<ul class="articles">
<li class="chapter " data-level="2.1.1.1" data-path="../c1/s1_1.html">
<a href="../c1/s1_1.html">
1.1 进程和内存
</a>
</li>
<li class="chapter " data-level="2.1.1.2" data-path="../c1/s1_2.html">
<a href="../c1/s1_2.html">
1.2 I/O和文件描述符
</a>
</li>
<li class="chapter " data-level="2.1.1.3" data-path="../c1/s1_3.html">
<a href="../c1/s1_3.html">
1.3 管道
</a>
</li>
<li class="chapter " data-level="2.1.1.4" data-path="../c1/s1_4.html">
<a href="../c1/s1_4.html">
1.4 文件系统
</a>
</li>
<li class="chapter " data-level="2.1.1.5" data-path="../c1/s1_5.html">
<a href="../c1/s1_5.html">
1.5 真实世界
</a>
</li>
<li class="chapter " data-level="2.1.1.6" data-path="../c1/s1_6.html">
<a href="../c1/s1_6.html">
1.6 练习
</a>
</li>
</ul>
</li>
<li class="chapter active" data-level="2.1.2" data-path="s2_0.html">
<a href="s2_0.html">
第二章 操作系统架构
</a>
</li>
</ul>
</li>
<li class="divider"></li>
<li>
<a href="https://www.gitbook.com" target="blank" class="gitbook-link">
Published with GitBook
</a>
</li>
</ul>
</nav>
</div>
<div class="book-body">
<div class="body-inner">
<div class="book-header" role="navigation">
<!-- Title -->
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i>
<a href="../../.." >第二章 操作系统架构</a>
</h1>
</div>
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
<div id="book-search-results">
<div class="search-noresults">
<section class="normal markdown-section">
<h1 id="&#x7B2C;&#x4E8C;&#x7AE0;-&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#x67B6;&#x6784;">&#x7B2C;&#x4E8C;&#x7AE0; &#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#x67B6;&#x6784;</h1>
<p>&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#x7684;&#x4E00;&#x4E2A;&#x5173;&#x952E;&#x8981;&#x6C42;&#x662F;&#x540C;&#x65F6;&#x652F;&#x6301;&#x591A;&#x4E2A;&#x6D3B;&#x52A8;&#x3002;&#x4F8B;&#x5982;&#xFF0C;&#x4F7F;&#x7528;&#x7B2C;1&#x7AE0;&#x4E2D;&#x63CF;&#x8FF0;&#x7684;&#x7CFB;&#x7EDF;&#x8C03;&#x7528;&#x63A5;&#x53E3;&#xFF0C;&#x4E00;&#x4E2A;&#x8FDB;&#x7A0B;&#x53EF;&#x4EE5;&#x7528;<code>fork</code>&#x542F;&#x52A8;&#x65B0;&#x8FDB;&#x7A0B;&#x3002;&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#x5FC5;&#x987B;&#x5728;&#x8FD9;&#x4E9B;&#x8FDB;&#x7A0B;&#x4E4B;&#x95F4;&#x5206;&#x65F6;&#x4F7F;&#x7528;&#x8BA1;&#x7B97;&#x673A;&#x8D44;&#x6E90;&#x3002;&#x4F8B;&#x5982;&#xFF0C;&#x5373;&#x4F7F;&#x8FDB;&#x7A0B;&#x6BD4;&#x786C;&#x4EF6;&#x5904;&#x7406;&#x5668;&#x591A;&#xFF0C;&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#x4E5F;&#x5FC5;&#x987B;&#x786E;&#x4FDD;&#x6240;&#x6709;&#x8FDB;&#x7A0B;&#x90FD;&#x6709;&#x673A;&#x4F1A;&#x6267;&#x884C;&#x3002;&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#x8FD8;&#x5FC5;&#x987B;&#x5B89;&#x6392;&#x8FDB;&#x7A0B;&#x4E4B;&#x95F4;&#x7684;&#x9694;&#x79BB;&#x3002;&#x4E5F;&#x5C31;&#x662F;&#x8BF4;&#xFF0C;&#x5982;&#x679C;&#x4E00;&#x4E2A;&#x8FDB;&#x7A0B;&#x6709;&#x9519;&#x8BEF;&#x548C;&#x6545;&#x969C;&#xFF0C;&#x5B83;&#x4E0D;&#x5E94;&#x8BE5;&#x5F71;&#x54CD;&#x4E0D;&#x4F9D;&#x8D56;&#x4E8E;&#x6709;&#x9519;&#x8BEF;&#x7684;&#x8FDB;&#x7A0B;&#x7684;&#x8FDB;&#x7A0B;&#x3002;&#x7136;&#x800C;&#xFF0C;&#x5B8C;&#x5168;&#x9694;&#x79BB;&#x53C8;&#x592A;&#x8FC7;&#x5934;&#x4E86;&#xFF0C;&#x8FDB;&#x7A0B;&#x4E4B;&#x95F4;&#x5E94;&#x5F53;&#x53EF;&#x4EE5;&#x8FDB;&#x884C;&#x523B;&#x610F;&#x4E3A;&#x4E4B;&#x7684;&#x4EA4;&#x4E92;&#xFF1B;&#x7BA1;&#x9053;&#x5C31;&#x662F;&#x4E00;&#x4E2A;&#x4F8B;&#x5B50;&#x3002;&#x56E0;&#x6B64;&#xFF0C;&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#x5FC5;&#x987B;&#x6EE1;&#x8DB3;&#x4E09;&#x4E2A;&#x8981;&#x6C42;&#xFF1A;&#x591A;&#x8DEF;&#x590D;&#x7528;&#x3001;&#x9694;&#x79BB;&#x548C;&#x4EA4;&#x4E92;&#x3002;</p>
<p>&#x672C;&#x7AE0;&#x6982;&#x8FF0;&#x4E86;&#x5982;&#x4F55;&#x7EC4;&#x7EC7;&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#x6765;&#x5B9E;&#x73B0;&#x8FD9;&#x4E09;&#x4E2A;&#x8981;&#x6C42;&#x3002;&#x4E8B;&#x5B9E;&#x8BC1;&#x660E;&#xFF0C;&#x6709;&#x5F88;&#x591A;&#x65B9;&#x6CD5;&#x53EF;&#x4EE5;&#x505A;&#x5230;&#x8FD9;&#x4E00;&#x70B9;&#xFF0C;&#x4F46;&#x662F;&#x672C;&#x6587;&#x4FA7;&#x91CD;&#x4E8E;&#x4EE5;<strong>&#x5B8F;&#x5185;&#x6838;</strong>&#x4E3A;&#x4E2D;&#x5FC3;&#x7684;&#x4E3B;&#x6D41;&#x8BBE;&#x8BA1;&#xFF0C;&#x8BB8;&#x591A;Unix&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#x90FD;&#x4F7F;&#x7528;&#x8FD9;&#x79CD;&#x5185;&#x6838;&#x3002;&#x672C;&#x7AE0;&#x8FD8;&#x6982;&#x8FF0;&#x4E86;xv6&#x8FDB;&#x7A0B;&#xFF08;&#x5B83;&#x662F;xv6&#x4E2D;&#x7684;&#x9694;&#x79BB;&#x5355;&#x5143;&#xFF09;&#x4EE5;&#x53CA;xv6&#x542F;&#x52A8;&#x65F6;&#x7B2C;&#x4E00;&#x4E2A;&#x8FDB;&#x7A0B;&#x7684;&#x521B;&#x5EFA;&#x3002;</p>
<p>Xv6&#x8FD0;&#x884C;&#x5728;&#x591A;&#x6838;RISC-V&#x5FAE;&#x5904;&#x7406;&#x5668;&#x4E0A;&#xFF0C;&#x5B83;&#x7684;&#x8BB8;&#x591A;&#x4F4E;&#x7EA7;&#x529F;&#x80FD;&#xFF08;&#x4F8B;&#x5982;&#xFF0C;&#x5B83;&#x7684;&#x8FDB;&#x7A0B;&#x5B9E;&#x73B0;&#xFF09;&#x662F;&#x7279;&#x5B9A;&#x4E8E;RISC-V&#x7684;&#x3002;RISC-V&#x662F;&#x4E00;&#x4E2A;64&#x4F4D;&#x7684;&#x4E2D;&#x592E;&#x5904;&#x7406;&#x5668;&#xFF0C;xv6&#x662F;&#x7528;&#x57FA;&#x4E8E;&#x201C;LP64&#x201D;&#x7684;C&#x8BED;&#x8A00;&#x7F16;&#x5199;&#x7684;&#xFF0C;&#x8FD9;&#x610F;&#x5473;&#x7740;C&#x8BED;&#x8A00;&#x4E2D;&#x7684;<code>long</code>&#xFF08;L&#xFF09;&#x548C;&#x6307;&#x9488;&#xFF08;P&#xFF09;&#x53D8;&#x91CF;&#x90FD;&#x662F;64&#x4F4D;&#x7684;&#xFF0C;&#x4F46;<code>int</code>&#x662F;32&#x4F4D;&#x7684;&#x3002;&#x8FD9;&#x672C;&#x4E66;&#x5047;&#x8BBE;&#x8BFB;&#x8005;&#x5DF2;&#x7ECF;&#x5728;&#x4E00;&#x4E9B;&#x67B6;&#x6784;&#x4E0A;&#x505A;&#x4E86;&#x4E00;&#x4E9B;&#x673A;&#x5668;&#x7EA7;&#x7F16;&#x7A0B;&#xFF0C;&#x5E76;&#x5C06;&#x5728;&#x51FA;&#x73B0;&#x65F6;&#x4ECB;&#x7ECD;RISC-V&#x7279;&#x5B9A;&#x7684;&#x60F3;&#x6CD5;&#x3002;RISC-V&#x7684;&#x4E00;&#x4E2A;&#x6709;&#x7528;&#x7684;&#x53C2;&#x8003;&#x6587;&#x732E;&#x662F;&#x300A;The RISC-V Reader: An Open Architecture Atlas&#x300B;&#x3002;&#x7528;&#x6237;&#x7EA7;ISA&#x548C;&#x7279;&#x6743;&#x6307;&#x4EE4;&#x67B6;&#x6784;&#x5747;&#x662F;&#x5B98;&#x65B9;&#x89C4;&#x8303;&#x3002;</p>
<p>&#x5B8C;&#x6574;&#x8BA1;&#x7B97;&#x673A;&#x4E2D;&#x7684;CPU&#x88AB;&#x652F;&#x6491;&#x786C;&#x4EF6;&#x5305;&#x56F4;&#xFF0C;&#x5176;&#x4E2D;&#x5927;&#x90E8;&#x5206;&#x662F;&#x4EE5;I/O&#x63A5;&#x53E3;&#x7684;&#x5F62;&#x5F0F;&#x3002;Xv6&#x662F;&#x4EE5;qemu&#x7684;&#x201C;-machine virt&#x201D;&#x9009;&#x9879;&#x6A21;&#x62DF;&#x7684;&#x652F;&#x6491;&#x786C;&#x4EF6;&#x7F16;&#x5199;&#x7684;&#x3002;&#x8FD9;&#x5305;&#x62EC;RAM&#x3001;&#x5305;&#x542B;&#x5F15;&#x5BFC;&#x4EE3;&#x7801;&#x7684;ROM&#x3001;&#x4E00;&#x4E2A;&#x5230;&#x7528;&#x6237;&#x952E;&#x76D8;/&#x5C4F;&#x5E55;&#x7684;&#x4E32;&#x884C;&#x8FDE;&#x63A5;&#xFF0C;&#x4EE5;&#x53CA;&#x4E00;&#x4E2A;&#x7528;&#x4E8E;&#x5B58;&#x50A8;&#x7684;&#x78C1;&#x76D8;&#x3002;</p>
</section>
</div>
<div class="search-results">
<div class="has-results">
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
<ul class="search-results-list"></ul>
</div>
<div class="no-results">
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
</div>
</div>
</div>
</div>
</div>
</div>
<a href="../c1/s1_6.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: 1.6 练习">
<i class="fa fa-angle-left"></i>
</a>
</div>
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"第二章 操作系统架构","level":"2.1.2","depth":2,"previous":{"title":"1.6 练习","level":"2.1.1.6","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_6.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_6.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["chapter-fold","code","splitter","pageview-count","donate","livereload"],"pluginsConfig":{"chapter-fold":{},"livereload":{},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"donate":{"alipay":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/alipay.png","alipayText":"支付宝","button":"打赏","title":"","wechat":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/wechatpay.png","wechatText":"微信"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"pageview-count":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"tranlate_books/book-riscv-rev1/c2/s2_0.md","mtime":"2021-08-18T14:36:12.467Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-08-18T14:37:37.699Z"},"basePath":"../../..","book":{"language":""}});
});
</script>
</div>
<script src="../../../gitbook/gitbook.js"></script>
<script src="../../../gitbook/theme.js"></script>
<script src="../../../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
<script src="../../../gitbook/gitbook-plugin-code/plugin.js"></script>
<script src="../../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
<script src="../../../gitbook/gitbook-plugin-pageview-count/plugin.js"></script>
<script src="../../../gitbook/gitbook-plugin-donate/plugin.js"></script>
<script src="../../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../../gitbook/gitbook-plugin-search/search-engine.js"></script>
<script src="../../../gitbook/gitbook-plugin-search/search.js"></script>
<script src="../../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
<script src="../../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
<script src="../../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
<script src="../../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
</body>
</html>

View File

@@ -0,0 +1,9 @@
# 第二章 操作系统架构
操作系统的一个关键要求是同时支持多个活动。例如,使用第1章中描述的系统调用接口,一个进程可以用`fork`启动新进程。操作系统必须在这些进程之间分时使用计算机资源。例如,即使进程比硬件处理器多,操作系统也必须确保所有进程都有机会执行。操作系统还必须安排进程之间的隔离。也就是说,如果一个进程有错误和故障,它不应该影响不依赖于有错误的进程的进程。然而,完全隔离又太过头了,进程之间应当可以进行刻意为之的交互;管道就是一个例子。因此,操作系统必须满足三个要求:多路复用、隔离和交互。
本章概述了如何组织操作系统来实现这三个要求。事实证明,有很多方法可以做到这一点,但是本文侧重于以**宏内核**为中心的主流设计,许多Unix操作系统都使用这种内核。本章还概述了xv6进程(它是xv6中的隔离单元)以及xv6启动时第一个进程的创建。
Xv6运行在多核RISC-V微处理器上,它的许多低级功能(例如,它的进程实现)是特定于RISC-V的。RISC-V是一个64位的中央处理器,xv6是用基于“LP64”的C语言编写的,这意味着C语言中的`long`(L)和指针(P)变量都是64位的,但`int`是32位的。这本书假设读者已经在一些架构上做了一些机器级编程,并将在出现时介绍RISC-V特定的想法。RISC-V的一个有用的参考文献是《The RISC-V Reader: An Open Architecture Atlas》。用户级ISA和特权指令架构均是官方规范。
完整计算机中的CPU被支撑硬件包围,其中大部分是以I/O接口的形式。Xv6是以qemu的“-machine virt”选项模拟的支撑硬件编写的。这包括RAM、包含引导代码的ROM、一个到用户键盘/屏幕的串行连接,以及一个用于存储的磁盘。

View File

@@ -240,6 +240,19 @@
</ul>
</li>
<li class="chapter " data-level="2.1.2" data-path="c2/s2_0.html">
<a href="c2/s2_0.html">
第二章 操作系统架构
</a>
</li>
@@ -337,7 +350,7 @@
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"book-riscv-rev1","level":"2.1","depth":1,"next":{"title":"第一章 操作系统接口","level":"2.1.1","depth":2,"path":"tranlate_books/book-riscv-rev1/c1/s1_0.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_0.md","articles":[{"title":"1.1 进程和内存","level":"2.1.1.1","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_1.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_1.md","articles":[]},{"title":"1.2 I/O和文件描述符","level":"2.1.1.2","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_2.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_2.md","articles":[]},{"title":"1.3 管道","level":"2.1.1.3","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_3.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_3.md","articles":[]},{"title":"1.4 文件系统","level":"2.1.1.4","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_4.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_4.md","articles":[]},{"title":"1.5 真实世界","level":"2.1.1.5","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_5.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_5.md","articles":[]},{"title":"1.6 练习","level":"2.1.1.6","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_6.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_6.md","articles":[]}]},"previous":{"title":"课程介绍","level":"1.1","depth":1,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["chapter-fold","code","splitter","pageview-count","donate"],"pluginsConfig":{"chapter-fold":{},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"donate":{"alipay":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/alipay.png","alipayText":"支付宝","button":"打赏","title":"","wechat":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/wechatpay.png","wechatText":"微信"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"pageview-count":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"tranlate_books/book-riscv-rev1/summary.md","mtime":"2021-08-18T13:39:32.537Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-08-18T14:27:07.263Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"book-riscv-rev1","level":"2.1","depth":1,"next":{"title":"第一章 操作系统接口","level":"2.1.1","depth":2,"path":"tranlate_books/book-riscv-rev1/c1/s1_0.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_0.md","articles":[{"title":"1.1 进程和内存","level":"2.1.1.1","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_1.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_1.md","articles":[]},{"title":"1.2 I/O和文件描述符","level":"2.1.1.2","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_2.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_2.md","articles":[]},{"title":"1.3 管道","level":"2.1.1.3","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_3.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_3.md","articles":[]},{"title":"1.4 文件系统","level":"2.1.1.4","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_4.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_4.md","articles":[]},{"title":"1.5 真实世界","level":"2.1.1.5","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_5.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_5.md","articles":[]},{"title":"1.6 练习","level":"2.1.1.6","depth":3,"path":"tranlate_books/book-riscv-rev1/c1/s1_6.md","ref":"tranlate_books/book-riscv-rev1/c1/s1_6.md","articles":[]}]},"previous":{"title":"课程介绍","level":"1.1","depth":1,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["chapter-fold","code","splitter","pageview-count","donate","livereload"],"pluginsConfig":{"chapter-fold":{},"livereload":{},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"donate":{"alipay":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/alipay.png","alipayText":"支付宝","button":"打赏","title":"","wechat":"https://raw.githubusercontent.com/duguosheng/6.S081-All-in-one/main/images/wechatpay.png","wechatText":"微信"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"pageview-count":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"tranlate_books/book-riscv-rev1/summary.md","mtime":"2021-08-18T13:39:32.537Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-08-18T14:37:37.699Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@@ -367,6 +380,10 @@
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

View File

@@ -0,0 +1,9 @@
# 第二章 操作系统架构
操作系统的一个关键要求是同时支持多个活动。例如,使用第1章中描述的系统调用接口,一个进程可以用`fork`启动新进程。操作系统必须在这些进程之间分时使用计算机资源。例如,即使进程比硬件处理器多,操作系统也必须确保所有进程都有机会执行。操作系统还必须安排进程之间的隔离。也就是说,如果一个进程有错误和故障,它不应该影响不依赖于有错误的进程的进程。然而,完全隔离又太过头了,进程之间应当可以进行刻意为之的交互;管道就是一个例子。因此,操作系统必须满足三个要求:多路复用、隔离和交互。
本章概述了如何组织操作系统来实现这三个要求。事实证明,有很多方法可以做到这一点,但是本文侧重于以**宏内核**为中心的主流设计,许多Unix操作系统都使用这种内核。本章还概述了xv6进程(它是xv6中的隔离单元)以及xv6启动时第一个进程的创建。
Xv6运行在多核RISC-V微处理器上,它的许多低级功能(例如,它的进程实现)是特定于RISC-V的。RISC-V是一个64位的中央处理器,xv6是用基于“LP64”的C语言编写的,这意味着C语言中的`long`(L)和指针(P)变量都是64位的,但`int`是32位的。这本书假设读者已经在一些架构上做了一些机器级编程,并将在出现时介绍RISC-V特定的想法。RISC-V的一个有用的参考文献是《The RISC-V Reader: An Open Architecture Atlas》。用户级ISA和特权指令架构均是官方规范。
完整计算机中的CPU被支撑硬件包围,其中大部分是以I/O接口的形式。Xv6是以qemu的“-machine virt”选项模拟的支撑硬件编写的。这包括RAM、包含引导代码的ROM、一个到用户键盘/屏幕的串行连接,以及一个用于存储的磁盘。