diff options
author | Marvin Borner | 2021-06-19 13:12:34 +0200 |
---|---|---|
committer | Marvin Borner | 2021-06-19 13:12:34 +0200 |
commit | 73a55007a44d23be40be681c4882fd6ad1e30b60 (patch) | |
tree | 87f37dff42d8ae51dbb2250f1752a03081298cc3 /kernel/features/proc.c | |
parent | 02a0c882275959c0fbd58754418ecc1218821e76 (diff) |
Improved bus and device management
Diffstat (limited to 'kernel/features/proc.c')
-rw-r--r-- | kernel/features/proc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/features/proc.c b/kernel/features/proc.c index 70e3666..03f45c9 100644 --- a/kernel/features/proc.c +++ b/kernel/features/proc.c @@ -1,6 +1,7 @@ // MIT License, Copyright (c) 2020 Marvin Borner #include <assert.h> +#include <dev.h> #include <drivers/cpu.h> #include <drivers/gdt.h> #include <drivers/timer.h> @@ -190,6 +191,7 @@ void proc_exit(s32 status) printf("Process didn't leak memory!\n"); } + dev_remove_proc(proc); stack_destroy(proc->messages); list_destroy(proc->memory); // TODO: Decrement memory ref links virtual_destroy_dir(proc->page_dir); |