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

Fixed shmem bug in do_pgfault, vmm.c. Changed pa2page to pte2page #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LuChengTHU
Copy link

很明显这里把pte变为page需要调用pte2page。
在x86里面,由于pte和pa的长度都为32bit或64bit,pa2page与pte2page是等价的,所以没有暴露这个bug。
而在risc-v里,pte和物理地址的长度不同,因此这个问题暴露得尤为明显。

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

Successfully merging this pull request may close these issues.

1 participant