diff options
author | Marvin Borner | 2020-08-01 17:30:42 +0200 |
---|---|---|
committer | Marvin Borner | 2020-08-01 17:30:42 +0200 |
commit | 928bf3f29d7a8b2163a3c1d5c15554d5b42c606b (patch) | |
tree | 16924d82ad79f609ee5966b165050bbcace90b9e /src/features | |
parent | 9a146c325ac0538be807e904d7c35d0a73f9fc5e (diff) |
Some entry position optimizations
Diffstat (limited to 'src/features')
-rw-r--r-- | src/features/load.c | 4 |
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(); } |