Fennix/KThread.cpp
2022-10-22 19:05:39 +03:00

22 lines
355 B
C++

#include "kernel.h"
#include <power.hpp>
void KernelMainThread()
{
KPrint("Kernel main thread started!");
// asm("int $0x1");
CPU::Stop();
}
void KernelShutdownThread(bool Reboot)
{
KPrint("Kernel shutdown thread started!");
if (Reboot)
PowerManager->Reboot();
else
PowerManager->Shutdown();
CPU::Stop();
}