wip: start to add multiple pd for each task
This commit is contained in:
@ -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]) {
|
||||
|
||||
Reference in New Issue
Block a user