LearningOS / rCore-Tutorial-Guide-2024S

GNU General Public License v3.0
3 stars 3 forks source link

rCore-Tutorial-Guide-2024S/chapter4/7exercise #21

Open utterances-bot opened 2 months ago

utterances-bot commented 2 months ago

chapter4练习 - rCore-Tutorial-Guide-2024S 文档

https://learningos.cn/rCore-Tutorial-Guide-2024S/chapter4/7exercise.html

MROS commented 2 months ago
fn sys_mmap(start: usize, len: usize, port: usize) -> isize

第三個參數該是 prot ? property 的縮寫。

zjp-CN commented 2 months ago

问答作业对拓展型的知识问的太多了,完全不像上一章那样,对具体代码提问。而且这些问题非常别扭,不是拐着弯问就是重复问一个东西。

双页表实现下,何时需要更换页表?假设你写一个单页表操作系统,你会选择何时更换页表

这个问题前半段问双页表,后半段问单页表,然后又问了一遍“在单页表情况下,如何更换页表?”。。。

z071230116 commented 1 month ago

port & 0x7 = 0 (这样的内存无意义)

应该是port & 0x7 == 0 吧