Merge branch 'master' of postpeta.pccluster.org:mckernel

This commit is contained in:
Tomoki Shirasawa
2014-06-25 13:45:46 +09:00
3 changed files with 12 additions and 6 deletions

View File

@@ -510,6 +510,11 @@ void cpu_halt(void)
asm volatile("hlt");
}
void cpu_safe_halt(void)
{
asm volatile("sti; hlt");
}
void cpu_enable_interrupt(void)
{
asm volatile("sti");