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:
parent
884ce30c07
commit
196e958336
2 changed files with 7 additions and 0 deletions
|
@ -98,5 +98,11 @@ namespace Sortix
|
||||||
// If that didn't work, just halt.
|
// If that didn't work, just halt.
|
||||||
asm volatile("hlt");
|
asm volatile("hlt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ShutDown()
|
||||||
|
{
|
||||||
|
// TODO: Unimplemented, just reboot.
|
||||||
|
Reboot();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,6 +36,7 @@ namespace Sortix
|
||||||
uint16_t InPortW(uint16_t Port);
|
uint16_t InPortW(uint16_t Port);
|
||||||
uint32_t InPortL(uint16_t Port);
|
uint32_t InPortL(uint16_t Port);
|
||||||
void Reboot();
|
void Reboot();
|
||||||
|
void ShutDown();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue