MIT6.s081 lab3记录:页表
MIT6.s081 lab3记录:页表
Print a page table
1 | page table 0x0000000087f6e000 |
What does page 0 contain?
code and data
What is in page 2?
user stack
When running in user mode, could the process read/write the memory mapped by page 1?
1
pte: 0x0000000021fda00f
can’t read , write, and execute in user mode, this could be the guard page
What does the third to last page contain?
the last page is the trapoline page, but the last two i am not sure, may be the heap and trapframe
Detecting which pages have been accessed (hard)
Task
- implement pgaccess():报告哪些页被访问了
- 参数:
- 第一个用户页的起始虚拟地址
- 需要检查的页的数量
- 用来存结果的用户缓存地址
- Post title:MIT6.s081 lab3记录:页表
- Post author:sixwalter
- Create time:2023-08-05 11:14:26
- Post link:https://coelien.github.io/2023/08/05/course-learning/MIT6.S081/lab3/
- Copyright Notice:All articles in this blog are licensed under BY-NC-SA unless stating additionally.
Comments