]> xenbits.xensource.com Git - people/liuw/xtf.git/commitdiff
Introduce invlpg() helper
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 1 Jun 2016 13:40:21 +0000 (14:40 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 12 Jul 2016 09:51:17 +0000 (10:51 +0100)
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
include/arch/x86/lib.h

index 2427a217518616b235b33401a8251ad7431042cd..df5002aacf487cc571a6d0c3814d508c38b6bc69 100644 (file)
@@ -301,6 +301,11 @@ static inline void write_cr8(unsigned long cr8)
     asm volatile ("mov %0, %%cr8" :: "r" (cr8));
 }
 
+static inline void invlpg(const void *va)
+{
+    asm volatile ("invlpg (%0)" :: "r" (va));
+}
+
 #endif /* XTF_X86_LIB_H */
 
 /*