summaryrefslogtreecommitdiff
path: root/src/kernel/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/main.c')
-rw-r--r--src/kernel/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/main.c b/src/kernel/main.c
index ce69bc2..1743a0c 100644
--- a/src/kernel/main.c
+++ b/src/kernel/main.c
@@ -14,7 +14,7 @@ static void run_init(struct kmain_info *info) {
for (uintptr_t off = 0; off < info->init.size; off += PAGE_SIZE)
pagedir_map(proc->pages, init_base + off, info->init.at + off,
true, true);
- proc->regs.eip = init_base;
+ proc->regs.eip = (int) init_base;
log_const("switching...");
process_switch(proc);