From 09a66e91ec9e8a677aa48f27798753084f213713 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 9 May 2020 17:39:31 +0200 Subject: Replaced fork() with spawn()! Who needs forks anyway --- src/kernel/fs/elf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/kernel/fs/elf.c') diff --git a/src/kernel/fs/elf.c b/src/kernel/fs/elf.c index 3d7fcde..be1bc95 100644 --- a/src/kernel/fs/elf.c +++ b/src/kernel/fs/elf.c @@ -1,6 +1,7 @@ #include #include #include +#include #include #include #include @@ -24,6 +25,7 @@ int is_elf(struct elf_header *header) struct process *elf_load(char *path) { + cli(); u8 *file = read_file(path); if (!file) { warn("File or directory not found: %s", path); @@ -71,5 +73,6 @@ struct process *elf_load(char *path) } paging_switch_directory(paging_root_directory); + sti(); return proc; -} +} \ No newline at end of file -- cgit v1.2.3