summaryrefslogtreecommitdiff
path: root/src/kernel/elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/elf.c')
-rw-r--r--src/kernel/elf.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/kernel/elf.c b/src/kernel/elf.c
index 146035e..f601654 100644
--- a/src/kernel/elf.c
+++ b/src/kernel/elf.c
@@ -6,6 +6,8 @@
#include "paging.h"
#include "pmap.h"
+#include "log.h"
+
#define ELF_MAGIC 0x464c457f
enum {
@@ -129,9 +131,12 @@ uint32_t try_elf_run(const struct drive *d, const char *path, const char *pass_o
tstate.ret_addr = ehead.entry_vma;
tstate.stack_bottom = 0;
+//logf(LOG_INFO, " tasks: 0x%h", tasks);
+//logf(LOG_INFO, "active_task: 0x%h", active_task);
+//logf(LOG_INFO, " new edi: 0x%hb", active_task - tasks + 1);
tstate.edx = (uint32_t)pass_vma;
- tstate.esi = active_task - tasks + 1;
- tstate.edi = io_handle;
+ tstate.esi = io_handle;
+ tstate.edi = active_task - tasks + 1;
tstate.esp = 0;
const char *path_end_start = path;