From 196e9583369d1152c4426eb9cfa371f6832cb814 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sat, 5 Nov 2011 19:13:16 +0100 Subject: [PATCH] Added a CPU::ShutDown() function. --- sortix/x86-family/x86-family.cpp | 6 ++++++ sortix/x86-family/x86-family.h | 1 + 2 files changed, 7 insertions(+) diff --git a/sortix/x86-family/x86-family.cpp b/sortix/x86-family/x86-family.cpp index 32b392b6..baf9b989 100644 --- a/sortix/x86-family/x86-family.cpp +++ b/sortix/x86-family/x86-family.cpp @@ -98,5 +98,11 @@ namespace Sortix // If that didn't work, just halt. asm volatile("hlt"); } + + void ShutDown() + { + // TODO: Unimplemented, just reboot. + Reboot(); + } } } diff --git a/sortix/x86-family/x86-family.h b/sortix/x86-family/x86-family.h index c8843ad4..11b079dd 100644 --- a/sortix/x86-family/x86-family.h +++ b/sortix/x86-family/x86-family.h @@ -36,6 +36,7 @@ namespace Sortix uint16_t InPortW(uint16_t Port); uint32_t InPortL(uint16_t Port); void Reboot(); + void ShutDown(); } }