mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-11 07:19:20 +00:00
KernelShutdownThread stub
This commit is contained in:
13
KThread.cpp
13
KThread.cpp
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user