diff options
Diffstat (limited to 'src/kernel/task.c')
-rw-r--r-- | src/kernel/task.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kernel/task.c b/src/kernel/task.c index e2c19ca..6c53510 100644 --- a/src/kernel/task.c +++ b/src/kernel/task.c @@ -91,6 +91,8 @@ void make_sure_tasks() { } void delete_task(struct task_state *state) { + switch_to_kernel_cr3(); free_task_pd(state->page_directory); + switch_to_task_cr3(); state->page_directory = 0; }
\ No newline at end of file |