Commit f91e7722 authored by MaPl's avatar MaPl
Browse files

[lab6] temp: remove enable_interrupt() in interrupt_handler()

Just to avoid instruction page fault
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -104,7 +104,7 @@ struct trapframe* interrupt_handler(struct trapframe* tf)
case IRQ_U_TIMER:
case IRQ_S_TIMER:
clock_set_next_event();
enable_interrupt(); /* 允许嵌套中断 */
// enable_interrupt(); /* 允许嵌套中断 */
if (trap_in_kernel(tf)) {
++current->cstime;
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment