1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Added a CPU::ShutDown() function.

This commit is contained in:
Jonas 'Sortie' Termansen 2011-11-05 19:13:16 +01:00
parent 884ce30c07
commit 196e958336
2 changed files with 7 additions and 0 deletions

View file

@ -98,5 +98,11 @@ namespace Sortix
// If that didn't work, just halt.
asm volatile("hlt");
}
void ShutDown()
{
// TODO: Unimplemented, just reboot.
Reboot();
}
}
}

View file

@ -36,6 +36,7 @@ namespace Sortix
uint16_t InPortW(uint16_t Port);
uint32_t InPortL(uint16_t Port);
void Reboot();
void ShutDown();
}
}