Added a CPU::ShutDown() function.
This commit is contained in:
parent
884ce30c07
commit
196e958336
|
@ -98,5 +98,11 @@ namespace Sortix
|
|||
// If that didn't work, just halt.
|
||||
asm volatile("hlt");
|
||||
}
|
||||
|
||||
void ShutDown()
|
||||
{
|
||||
// TODO: Unimplemented, just reboot.
|
||||
Reboot();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,6 +36,7 @@ namespace Sortix
|
|||
uint16_t InPortW(uint16_t Port);
|
||||
uint32_t InPortL(uint16_t Port);
|
||||
void Reboot();
|
||||
void ShutDown();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue