Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ucore-lab3 - Heeler-Deer #71

Open
heeler-deer opened this issue Aug 29, 2023 · 0 comments
Open

ucore-lab3 - Heeler-Deer #71

heeler-deer opened this issue Aug 29, 2023 · 0 comments

Comments

@heeler-deer
Copy link
Owner

https://heeler-deer.top/posts/44602/

本实验主要是对页替换算法的实现 woc,有人写了ucore step-by-step,太强了。 知识点 当程序访问内存时,会出现三种情况: 写入一个存在物理页的虚拟页 读一个不存在的页 不满足访问权限 这时就需要缺页处理程序来处理,cpu会把产生异常的线性地址存储到lab2里提到过的cr2寄存器中,并且把页访问异常的错误码存放在中断栈中。 这里只讨论物理页面不够用的时候,应该置换那个物理页面。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant