Conversation
… now should be initialization of VM state in boot.c, an implementation of mpu_enable_subregion, and integration with the m0FaultDispatch library's hardfault-with-context handler
… now should be initialization of VM state in boot.c, an implementation of mpu_enable_subregion, and integration with the m0FaultDispatch library's hardfault-with-context handler
…clude rich logging for unhandled exceptions
…auses the user program to re-execute the faulting instruction; also fixed lack of an error value for pte_group_index_t
…llocatable * begin updating create_system_resources to use vm; still in-progress * add a TODO for vm system init * get rid of unused panic macros * add extra parens to macros in vm.h with arguments for safety
* use correct size when initializing group tables * modify context switch assembly to do vm management (MPU protections, fault in stack before attempting to pop from it) * fix incorrect index <-> address conversion macros * fix incorrect initialization of PTEs when pages are first allocated * fix incorrect page fault copy-in size * updated outdated comments
…o single-byte writes + other awful compiler behavior
…o hardware registers the wrong way
…how to make it cleaner -- things in
… end the struggle with bitfields once and for all (hopefully?) -- source now faults in upon context switch to the user program, but there's more debugging left to do
… blinking! sleep_ms or timer_hw write from user program seems to cause problems
…run concurrently from the same address range in SRAM!
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This will be a draft PR until I add a feature flag to enable/disable VM