aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/load.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/features/load.c')
-rw-r--r--kernel/features/load.c6
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)