[arch][riscv] add simple support for context switching user space aspaces

Pretty inefficient but probably works well enough.
This commit is contained in:
Travis Geiselbrecht
2021-04-09 02:00:57 -07:00
parent 790916d14e
commit a3713e8b39
3 changed files with 19 additions and 5 deletions

View File

@@ -203,7 +203,7 @@ size_t pmm_free(struct list_node *list) {
mutex_acquire(&lock);
uint count = 0;
size_t count = 0;
while (!list_is_empty(list)) {
vm_page_t *page = list_remove_head_type(list, vm_page_t, node);