Kernel/KThread.cpp
2022-10-23 02:18:29 +03:00

23 lines
373 B
C++

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