Commit 4029c34b authored by Gleb Natapov's avatar Gleb Natapov Committed by Avi Kivity
Browse files

Move invlpg() into library code


Signed-off-by: default avatarGleb Natapov <gleb@redhat.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent af11bd88
......@@ -290,4 +290,8 @@ static inline void irq_enable(void)
asm volatile("sti");
}
static inline void invlpg(void *va)
{
asm volatile("invlpg (%0)" ::"r" (va) : "memory");
}
#endif
......@@ -202,11 +202,6 @@ int ac_test_bump(ac_test_t *at)
return ret;
}
void invlpg(void *addr)
{
asm volatile ("invlpg (%0)" : : "r"(addr));
}
pt_element_t ac_test_alloc_pt(ac_pool_t *pool)
{
pt_element_t ret = pool->pt_pool + pool->pt_pool_current;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment