CPU: Add a pause() method
This commit is contained in:
parent
a16f357ab9
commit
9d6235e109
@ -25,4 +25,6 @@ namespace CPU
|
||||
void print_stack_trace();
|
||||
void get_stack_trace_at(Registers* regs, void (*callback)(u64, void*), void* arg);
|
||||
void print_stack_trace_at(Registers* regs);
|
||||
|
||||
void pause();
|
||||
}
|
@ -506,6 +506,11 @@ namespace CPU
|
||||
},
|
||||
&frame_index);
|
||||
}
|
||||
|
||||
void pause()
|
||||
{
|
||||
asm volatile("pause");
|
||||
}
|
||||
}
|
||||
|
||||
// called by kernel_yield
|
||||
|
Loading…
Reference in New Issue
Block a user