Explorar el Código

Merge pull request #880 from armink/fix_scheduler

[Kernel] Fix a bug on rt_schedule().
Bernard Xiong hace 7 años
padre
commit
121b72df71
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      src/scheduler.c

+ 5 - 0
src/scheduler.c

@@ -269,6 +269,11 @@ void rt_schedule(void)
             rt_hw_interrupt_enable(level);
         }
     }
+    else
+    {
+        /* enable interrupt */
+        rt_hw_interrupt_enable(level);
+    }
 }
 
 /*