Skip to content
Snippets Groups Projects
Commit 03fe28f8 authored by Avi Kivity's avatar Avi Kivity
Browse files

x64: add an accessor for the special sti; hlt sequence

Also add an arch independent name for it.
parent 8ef3153a
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,11 @@ inline void irq_enable()
processor::sti();
}
inline void wait_for_interrupt()
{
processor::sti_hlt();
}
class irq_flag {
public:
// need to clear the red zone when playing with the stack. also, can't
......
......@@ -158,6 +158,10 @@ namespace processor {
asm volatile ("cli; hlt");
}
inline void sti_hlt() {
asm volatile ("sti; hlt");
}
inline u8 inb (u16 port)
{
u8 r;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment