diff options
author | Marvin Borner | 2020-08-09 21:55:42 +0200 |
---|---|---|
committer | Marvin Borner | 2020-08-09 21:55:42 +0200 |
commit | f163a5d5f6802f63092229f0f9326e5fb44b7908 (patch) | |
tree | f24ccfe1b9bd340875d534e1aa19ef8676fd4d7b /kernel/features/load.c | |
parent | b6d3d341c19440f8447d8d6c6567b7ff78db3174 (diff) |
Added malloc/free syscall
Diffstat (limited to 'kernel/features/load.c')
-rw-r--r-- | kernel/features/load.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/features/load.c b/kernel/features/load.c index cc1a094..14a3086 100644 --- a/kernel/features/load.c +++ b/kernel/features/load.c @@ -2,10 +2,9 @@ #include <def.h> #include <fs.h> -#include <load.h> #include <mem.h> -#include <print.h> #include <proc.h> +#include <str.h> void bin_load(char *path, struct proc *proc) { @@ -16,4 +15,5 @@ void bin_load(char *path, struct proc *proc) proc->regs.esp = (u32)stack; proc->regs.useresp = (u32)stack; proc->regs.eip = (u32)data; + strcpy(proc->name, path + 1); } |