Skip to content

Fix mappings #228

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

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

Fix mappings #228

wants to merge 1 commit into from

Conversation

maxtyson123
Copy link
Contributor

This hasnt changed your actual function, you should do that as you know how your VMM works
See osdev-notes-2025-01-19.pdf page=258

This hasnt changed your actual function, you should do that as you know how your VMM works
// 2 = Write
// 4 = Execute
// They can be mixed.
// Conversion
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The table (I think lol) in my original comment was referring to the elf flags for the memory segments, that differ from the VM ones (that are the paging flags).

| PF_X | 0x1 | Execute |
| PF_W | 0x2 | Write |
| PF_R | 0x4 | Read |

So apparently even my comment was wrong XD (i don't even remember if there was something else too in the mappings code). Anyway i notice a typo on the line above , can you fix that too?

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.

2 participants