KernelShutdownThread stub

This commit is contained in:
Alex
2022-10-22 19:05:39 +03:00
parent 9d4fb06f4c
commit 84b9f6bdf0
3 changed files with 17 additions and 0 deletions

View File

@ -1,8 +1,21 @@
#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();
}