diff options
author | Marvin Borner | 2020-08-21 23:08:16 +0200 |
---|---|---|
committer | Marvin Borner | 2020-08-21 23:08:16 +0200 |
commit | 94de27efb7f9f97d162c1cd6b0a2bb89e3fe555f (patch) | |
tree | b2ae93419138cd0af46559b0b1f1a03862d62242 /kernel/features/load.c | |
parent | f700ba6668dbdb91a03b2c5aa387eb4cabae8fcd (diff) |
Finished proper return of processes
Diffstat (limited to 'kernel/features/load.c')
-rw-r--r-- | kernel/features/load.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/features/load.c b/kernel/features/load.c index 2f3f65f..1f1c898 100644 --- a/kernel/features/load.c +++ b/kernel/features/load.c @@ -13,16 +13,16 @@ int bin_load(char *path, struct proc *proc) { char *data = read_file(path); if (!data) - return 0; + return 1; - u32 stack = (u32)malloc(0x1000) + 0x1000; + u32 stack = (u32)malloc(0x2000) + 0x1000; proc->regs.ebp = (u32)stack; proc->regs.esp = (u32)stack; proc->regs.useresp = (u32)stack; proc->regs.eip = (u32)data; strcpy(proc->name, path + 1); - return 1; + return 0; } int elf_verify(struct elf_header *h) |