Skip to content

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