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

x64: add wrfsbase accessor

Faster way to write fsbase on newer processors.
parent e8c62c5e
No related branches found
No related tags found
No related merge requests found
......@@ -202,6 +202,11 @@ inline void wrmsr(u32 index, u64 data) {
asm volatile ("wrmsr" : : "c"(index), "a"(lo), "d"(hi));
}
inline void wrfsbase(u64 data)
{
asm volatile("wrfsbase %0" : : "r"(data));
}
inline void halt_no_interrupts() {
asm volatile ("cli; hlt");
}
......
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