aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/load.c
diff options
context:
space:
mode:
authorMarvin Borner2021-02-25 23:32:18 +0100
committerMarvin Borner2021-02-25 23:32:18 +0100
commitdec16faf32e75d613e20cac175b8a0c2d3612b94 (patch)
tree756d1ce3cf07cfe7da80702d96f9ec9e6585dceb /kernel/features/load.c
parentc258de9038d113cafcc8e290f7f70bbc2f1cb50d (diff)
Added some debugging features
I've tried to track down the bugs with kvm and q35 but I didn't manage to do it - yet! I'll probably look into it soon.
Diffstat (limited to 'kernel/features/load.c')
-rw-r--r--kernel/features/load.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/features/load.c b/kernel/features/load.c
index f79e6b4..9024c82 100644
--- a/kernel/features/load.c
+++ b/kernel/features/load.c
@@ -12,6 +12,7 @@ void proc_load(struct proc *proc, void *data)
proc->regs.ebp = (u32)stack;
proc->regs.useresp = (u32)stack;
proc->regs.eip = (u32)data;
+ proc->entry = (u32)data;
}
int bin_load(const char *path, struct proc *proc)