From ae9c1d1b16061242068353ff9064c8c9ef63b577 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 24 Jul 2021 18:53:34 +0200 Subject: sysexit() now overrides all registers when doing anything more complex than starting a new program, you pretty much need to pass a full register dump. otherwise stuff will break --- src/kernel/proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/proc.c') diff --git a/src/kernel/proc.c b/src/kernel/proc.c index a64d5ee..0f2b91d 100644 --- a/src/kernel/proc.c +++ b/src/kernel/proc.c @@ -26,5 +26,5 @@ struct process *process_new() { void process_switch(struct process *proc) { process_current = proc; pagedir_switch(proc->pages); - sysexit(proc->regs.eip, proc->regs.esp); + sysexit(proc->regs); } -- cgit v1.2.3