Skip to content

Implement VM#13

Draft
gustrain wants to merge 48 commits intomainfrom
vm
Draft

Implement VM#13
gustrain wants to merge 48 commits intomainfrom
vm

Conversation

@gustrain
Copy link
Collaborator

@gustrain gustrain commented Dec 5, 2024

This will be a draft PR until I add a feature flag to enable/disable VM

gustrain and others added 30 commits November 26, 2024 11:37
… 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
…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
… 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!
@gustrain gustrain self-assigned this Dec 5, 2024
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