aboutsummaryrefslogtreecommitdiff
path: root/src/features/load.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/load.c')
-rw-r--r--src/features/load.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/features/load.c b/src/features/load.c
deleted file mode 100644
index cc1a094..0000000
--- a/src/features/load.c
+++ /dev/null
@@ -1,19 +0,0 @@
-// MIT License, Copyright (c) 2020 Marvin Borner
-
-#include <def.h>
-#include <fs.h>
-#include <load.h>
-#include <mem.h>
-#include <print.h>
-#include <proc.h>
-
-void bin_load(char *path, struct proc *proc)
-{
- char *data = read_file(path);
- u32 stack = (u32)malloc(0x1000) + 0x1000;
-
- proc->regs.ebp = (u32)stack;
- proc->regs.esp = (u32)stack;
- proc->regs.useresp = (u32)stack;
- proc->regs.eip = (u32)data;
-}