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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/features/load.c b/src/features/load.c
index 47beb9b..958acd7 100644
--- a/src/features/load.c
+++ b/src/features/load.c
@@ -1,3 +1,5 @@
+// MIT License, Copyright (c) 2020 Marvin Borner
+
#include <def.h>
#include <fs.h>
#include <load.h>
@@ -8,7 +10,7 @@ void bin_load(char *path)
char *data = read_file(path);
void (*entry)();
- *(void **)(&entry) = data + MAIN_OFFSET;
+ *(void **)(&entry) = data;
entry();
}