From cf9135829836c85735b383f7c50f34232bea94f9 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 2 Jun 2020 23:10:27 +0200 Subject: Much work on the ELF parser and userspace jumping --- src/kernel/interrupts/isr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/interrupts/isr.c') diff --git a/src/kernel/interrupts/isr.c b/src/kernel/interrupts/isr.c index 73e24a3..ae72a0f 100644 --- a/src/kernel/interrupts/isr.c +++ b/src/kernel/interrupts/isr.c @@ -128,7 +128,7 @@ void fault_handler(struct regs *r) if (current_proc != NULL) { warn("%s: Suspending process %s with ID %d", message, current_proc->name, current_proc->pid); - memcpy(¤t_proc->registers, r, sizeof(struct regs)); + memcpy(¤t_proc->regs, r, sizeof(struct regs)); process_suspend(current_proc->pid); process_force_switch(); } else { -- cgit v1.2.3