diff options
Diffstat (limited to 'src/kernel/interrupts/isr.c')
-rw-r--r-- | src/kernel/interrupts/isr.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |