diff options
Diffstat (limited to 'src/kernel/proc.c')
-rw-r--r-- | src/kernel/proc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kernel/proc.c b/src/kernel/proc.c index 4c278e6..15e1ef9 100644 --- a/src/kernel/proc.c +++ b/src/kernel/proc.c @@ -3,6 +3,7 @@ #include <kernel/panic.h> #include <kernel/proc.h> #include <kernel/util.h> +#include <shared/magic.h> #include <stdint.h> struct process *process_first; @@ -23,6 +24,7 @@ struct process *process_seed() { for (int i = 0; i < FD_MAX; i++) proc->fds[i].type = FD_EMPTY; + proc->fds[FD_STDOUT].type = FD_SPECIAL_TTY; // map the stack to the last page in memory pagedir_map(proc->pages, (void*)~PAGE_MASK, page_alloc(1), true, true); |