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

MMU bug on get_1st_ptaddr? #10

Open
h8liu opened this issue Sep 22, 2014 · 0 comments
Open

MMU bug on get_1st_ptaddr? #10

h8liu opened this issue Sep 22, 2014 · 0 comments

Comments

@h8liu
Copy link

h8liu commented Sep 22, 2014

https://github.com/ozaki-r/arm-js/blob/master/js/armv7-mmu.js#L47

If I understand the code correctly, index here is masked by this.mask, which means it only has (12 - this.width) bits, however, when index is not zero, based on my understanding on ARM MMU, this should be using the full index (which has all the 12 bits) with baseaddr1, since baseaddr1 should be always a full sized page table.

Forgive me if I am wrong.

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

No branches or pull requests

1 participant