Signed-off-by: Gleb Natapov <gleb@xxxxxxxxxx> --- lib/x86/processor.h | 4 ++++ x86/access.c | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/x86/processor.h b/lib/x86/processor.h index 52881a3..61f3fc9 100644 --- a/lib/x86/processor.h +++ b/lib/x86/processor.h @@ -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 diff --git a/x86/access.c b/x86/access.c index 120682d..c0554d7 100644 --- a/x86/access.c +++ b/x86/access.c @@ -199,11 +199,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; -- 1.7.2.3 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html