From e8071b5d50f46ccdeeb0ce1ae7a704ef800fa97f Mon Sep 17 00:00:00 2001 From: Yuhao Zhou Date: Fri, 5 Apr 2019 21:22:21 +0800 Subject: [PATCH] Fix a minor bug. --- kernel/src/arch/mipsel/interrupt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/src/arch/mipsel/interrupt.rs b/kernel/src/arch/mipsel/interrupt.rs index 22f23ce..c87f223 100644 --- a/kernel/src/arch/mipsel/interrupt.rs +++ b/kernel/src/arch/mipsel/interrupt.rs @@ -58,7 +58,7 @@ pub extern fn rust_trap(tf: &mut TrapFrame) { use cp0::cause::{Exception as E}; trace!("Interrupt @ CPU{}: {:?} ", 0, tf.cause.cause()); match tf.cause.cause() { - E::Interrupt => interrupt_dispatcher(), + E::Interrupt => interrupt_dispatcher(tf), E::Syscall => syscall(tf), E::TLBModification => page_fault(tf), E::TLBLoadMiss => page_fault(tf),