Sfoglia il codice sorgente

Core: reset cpu_core in Shutdown to make IsPoweredOn work properly

wwylele 9 anni fa
parent
commit
fe2ed4bf72
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/core/core.cpp

+ 1 - 0
src/core/core.cpp

@@ -159,6 +159,7 @@ void System::Shutdown() {
     Kernel::Shutdown();
     HW::Shutdown();
     CoreTiming::Shutdown();
+    cpu_core.reset();
 
     LOG_DEBUG(Core, "Shutdown OK");
 }