wip: start to add multiple pd for each task

This commit is contained in:
2025-02-07 15:48:13 +01:00
parent 3b798e5daa
commit 8dd5373e7f
7 changed files with 101 additions and 85 deletions

View File

@ -19,6 +19,8 @@ void scheduler(void)
if (!current_task) // || current_task->next == current_task)
return;
cli();
uint32_t *old_pd = current_task->heap;
current_task->heap = page_directory;
struct task *it = current_task->next;
while (it && it->status != RUN) {
if (it != current_task && func[it->status]) {