Skip to content

draft: loader MMU changes, map RAM (and only RAM)#5

Draft
midnightveil wants to merge 4 commits into
mainfrom
julia/loader-mmu
Draft

draft: loader MMU changes, map RAM (and only RAM)#5
midnightveil wants to merge 4 commits into
mainfrom
julia/loader-mmu

Conversation

@midnightveil
Copy link
Copy Markdown

The intent of this is to allow us to enable the MMU earlier in boot and speed up loader copies.

However, something in the commit labelled as such breaks SMP boot; I'm not entirely sure what... (that is, dynamically allocated PTs).

Opening as draft in case some one wants to pick this up later.

As opposed to them being accessed via global variables
directly. The reason to do this is to enable us to vary
the page table placement from the C side without needing
to touch or modify the assembly any further, which will
enable the future commits for making the number of page
page table structures dynamic, which is necessary for
making the loader 1:1 all of RAM.

Also, remove some redundant stack pops/pushs to util64.S.

Signed-off-by: Julia Vassiliki <[email protected]>
This performs cleanups to the loader code, to remove a bunch of
boilerplate, and also makes the page table entries placed in
the loader binary at the end.

This is in preparation for moving towards mapping all of RAM
in the loader.

Signed-off-by: Julia Vassiliki <[email protected]>
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.

1 participant