This commit is contained in:
Niklas Gollenstede
2025-10-31 22:37:36 +01:00
commit 174fe17e89
197 changed files with 79558 additions and 0 deletions

16
kernel/arch/system.cc Normal file
View File

@@ -0,0 +1,16 @@
#include "system.h"
#include "../debug/output.h"
#include "cmos.h"
#include "ioport.h"
namespace System {
void reboot() {
const IOPort system_control_port_a(0x92);
DBG_VERBOSE << "rebooting smp" << endl;
CMOS::write(CMOS::Register::STATUS_SHUTDOWN, 0);
system_control_port_a.outb(0x3);
}
} // namespace System