diff options
author | Marvin Borner | 2020-04-27 23:13:36 +0200 |
---|---|---|
committer | Marvin Borner | 2020-04-27 23:13:36 +0200 |
commit | 46007d2598b7aef13895b21669cfb6f24272e5fe (patch) | |
tree | 59f68b3a9449d3777b84292efe55e2dc3f32cdaa /src/kernel/fs/elf.c | |
parent | f30c9803f05e90087e367953aa142275f8688f61 (diff) |
Minor but important fixes in processing
Diffstat (limited to 'src/kernel/fs/elf.c')
-rw-r--r-- | src/kernel/fs/elf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/fs/elf.c b/src/kernel/fs/elf.c index aea191b..ec22d77 100644 --- a/src/kernel/fs/elf.c +++ b/src/kernel/fs/elf.c @@ -33,7 +33,8 @@ struct process *elf_load(char *path) struct elf_program_header *program_header = (void *)header + header->phoff; if (!is_elf(header)) { - panic("File not valid"); + warn("File not valid: %s", path); + return NULL; } else { debug("File is valid: %s", path); } @@ -53,7 +54,6 @@ struct process *elf_load(char *path) case 0: break; case 1: - i += 0; debug("Allocating space for ELF binary section..."); uint32_t loc = (uint32_t)kmalloc_a(PAGE_S); paging_map_user(proc->cr3, loc, program_header->vaddr); |