diff options
author | dzwdz | 2021-07-24 16:55:15 +0200 |
---|---|---|
committer | dzwdz | 2021-07-24 16:55:15 +0200 |
commit | 4d5e930c48cded790f77497911706aa8f5ff0965 (patch) | |
tree | b256d379f5841d28a74fb28b6d01720cb14a5878 /src/kernel/main.c | |
parent | 67a359d8c4b9f5cb3d2e1fb9602ebe5dfd3978cf (diff) |
save all registers on syscalls
Diffstat (limited to 'src/kernel/main.c')
-rw-r--r-- | src/kernel/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/main.c b/src/kernel/main.c index 004be15..ce69bc2 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->eip = init_base; + proc->regs.eip = init_base; log_const("switching..."); process_switch(proc); |