mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
23 lines
373 B
C++
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();
|
|
}
|