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.c4
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);
}