mirror of
https://github.com/duguosheng/6.S081-All-in-one.git
synced 2026-11-03 22:05:04 +08:00
修改结构
This commit is contained in:
@@ -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)
|
||||
|
||||
11
_book/gitbook/gitbook-plugin-livereload/plugin.js
Normal file
11
_book/gitbook/gitbook-plugin-livereload/plugin.js
Normal 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);
|
||||
}
|
||||
|
||||
})();
|
||||
@@ -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
@@ -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>
|
||||
|
||||
|
||||
|
||||
@@ -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">"/bin/echo"</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">"/bin/echo"</span>, argv);
|
||||
|
||||
|
||||
|
||||
<script src="../../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../../../gitbook/gitbook-plugin-search/search-engine.js"></script>
|
||||
|
||||
|
||||
|
||||
@@ -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">"world\n"</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">"world\n"</span>, <span class="hlj
|
||||
|
||||
|
||||
|
||||
<script src="../../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../../../gitbook/gitbook-plugin-search/search-engine.js"></script>
|
||||
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
|
||||
@@ -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">"/tmp/xyz"</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">"/tmp/xyz"</span>);
|
||||
|
||||
|
||||
|
||||
<script src="../../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../../../gitbook/gitbook-plugin-search/search-engine.js"></script>
|
||||
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
|
||||
410
_book/tranlate_books/book-riscv-rev1/c2/s2_0.html
Normal file
410
_book/tranlate_books/book-riscv-rev1/c2/s2_0.html
Normal 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="第二章-操作系统架构">第二章 操作系统架构</h1>
|
||||
<p>操作系统的一个关键要求是同时支持多个活动。例如,使用第1章中描述的系统调用接口,一个进程可以用<code>fork</code>启动新进程。操作系统必须在这些进程之间分时使用计算机资源。例如,即使进程比硬件处理器多,操作系统也必须确保所有进程都有机会执行。操作系统还必须安排进程之间的隔离。也就是说,如果一个进程有错误和故障,它不应该影响不依赖于有错误的进程的进程。然而,完全隔离又太过头了,进程之间应当可以进行刻意为之的交互;管道就是一个例子。因此,操作系统必须满足三个要求:多路复用、隔离和交互。</p>
|
||||
<p>本章概述了如何组织操作系统来实现这三个要求。事实证明,有很多方法可以做到这一点,但是本文侧重于以<strong>宏内核</strong>为中心的主流设计,许多Unix操作系统都使用这种内核。本章还概述了xv6进程(它是xv6中的隔离单元)以及xv6启动时第一个进程的创建。</p>
|
||||
<p>Xv6运行在多核RISC-V微处理器上,它的许多低级功能(例如,它的进程实现)是特定于RISC-V的。RISC-V是一个64位的中央处理器,xv6是用基于“LP64”的C语言编写的,这意味着C语言中的<code>long</code>(L)和指针(P)变量都是64位的,但<code>int</code>是32位的。这本书假设读者已经在一些架构上做了一些机器级编程,并将在出现时介绍RISC-V特定的想法。RISC-V的一个有用的参考文献是《The RISC-V Reader: An Open Architecture Atlas》。用户级ISA和特权指令架构均是官方规范。</p>
|
||||
<p>完整计算机中的CPU被支撑硬件包围,其中大部分是以I/O接口的形式。Xv6是以qemu的“-machine virt”选项模拟的支撑硬件编写的。这包括RAM、包含引导代码的ROM、一个到用户键盘/屏幕的串行连接,以及一个用于存储的磁盘。</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>
|
||||
|
||||
9
_book/tranlate_books/book-riscv-rev1/c2/s2_0.md
Normal file
9
_book/tranlate_books/book-riscv-rev1/c2/s2_0.md
Normal 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、一个到用户键盘/屏幕的串行连接,以及一个用于存储的磁盘。
|
||||
@@ -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>
|
||||
|
||||
|
||||
|
||||
9
tranlate_books/book-riscv-rev1/c2/s2_0.md
Normal file
9
tranlate_books/book-riscv-rev1/c2/s2_0.md
Normal 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、一个到用户键盘/屏幕的串行连接,以及一个用于存储的磁盘。
|
||||
Reference in New Issue
Block a user