Skip to content

implement virtual memory mapping#105

Draft
atpamat wants to merge 1 commit into
Operacja-System:mainfrom
atpamat:vm-mapping
Draft

implement virtual memory mapping#105
atpamat wants to merge 1 commit into
Operacja-System:mainfrom
atpamat:vm-mapping

Conversation

@atpamat
Copy link
Copy Markdown

@atpamat atpamat commented May 11, 2026

No description provided.

@Kamilosok Kamilosok added the new feature Added new functionality label May 11, 2026
}
if (pt_leaf_level == FRAME_SIZES_COUNT)
return ERR_BAD_ARG;
if ((u32)vaddr % frame_sizes[pt_leaf_level] != 0)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

division bad

page_index = (virt_addr >> (12 + 9 * (current_level+1))) & 0x1FF;
}

page[page_index] |= as_flags_to_riscv(rs39_as->flags, flags) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This should first remove previous flags

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

Labels

new feature Added new functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants