Skip to content

mem: add virtual memory mapping and enable paging#34

Merged
Sulfiore merged 19 commits intomasterfrom
mem
Apr 4, 2022
Merged

mem: add virtual memory mapping and enable paging#34
Sulfiore merged 19 commits intomasterfrom
mem

Conversation

@Sulfiore
Copy link
Copy Markdown
Collaborator

@Sulfiore Sulfiore commented Apr 4, 2022

No description provided.

Sulfiore and others added 19 commits March 25, 2022 15:37
Implement also the Get function for each flag/value
ferramenta aka hardware store is a store in italy were you can find everything.
When requesting the address from the PD or PT struct, it should match the
value, but without the flags. So hiding it with a binary operation is the
right way to do it. Also adding repr C, to avoid problems in future loading the
PD into the CR3 register.
mapping the first 4MiB of virtual address space to the equivalent physical
addresses to continue using lower level memory function such as the VGA buffer.
Cleaning up some things:
- removed unused get_largest_mem_segment() function
- using ptr to DirectoryEntry instead of u8 when calling loadPageDirectory()
@Sulfiore Sulfiore merged commit 835d3d6 into master Apr 4, 2022
@Sulfiore Sulfiore deleted the mem branch April 4, 2022 15:19
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