-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
609 additions
and
337 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
- gic mappings | ||
- kpt.lock().map(allocator=PMM) | ||
map needs to allocate new node | ||
- pmm.alloc | ||
- kpt.lock().map(allocator=NPA) # second locks | ||
|
||
my bug | ||
- pgt.map(allocator=PMM) | ||
needs to allocate new pte | ||
- pmm.give_page | ||
need to map that page | ||
pgt.map(allocated=PMM) etc... | ||
but we need to use the current pagetable instead | ||
|
||
|
||
case when pagetable maps its own stuff | ||
- pgt.map(allocator=PMM) | ||
lock the mutex | ||
needs to allocate new pte | ||
- pmm.give_page | ||
need to map that page | ||
GLOBAL_PAGETABLE.map(allocated=PMM) if pgt == GLOBAL_PAGETABLR back to step 1 | ||
- this make use try to lock the mutex again, hang forever |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ hal_core = { path = "../hal_core" } | |
tock-registers = "0.8" | ||
cortex-a = "8.1" | ||
log = "0.4" | ||
spin = "0.9.8" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.