File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -34,4 +34,8 @@ static inline void __tlb_remove_table(void *table)
34
34
free_page_and_swap_cache (table );
35
35
}
36
36
37
+ static inline void invlpg (unsigned long addr )
38
+ {
39
+ asm volatile ("invlpg (%0)" ::"r" (addr ) : "memory" );
40
+ }
37
41
#endif /* _ASM_X86_TLB_H */
Original file line number Diff line number Diff line change 20
20
#include <asm/cacheflush.h>
21
21
#include <asm/apic.h>
22
22
#include <asm/perf_event.h>
23
+ #include <asm/tlb.h>
23
24
24
25
#include "mm_internal.h"
25
26
@@ -1140,7 +1141,7 @@ STATIC_NOPV void native_flush_tlb_one_user(unsigned long addr)
1140
1141
bool cpu_pcide ;
1141
1142
1142
1143
/* Flush 'addr' from the kernel PCID: */
1143
- asm volatile ( " invlpg (%0)" :: "r" ( addr ) : "memory" );
1144
+ invlpg ( addr );
1144
1145
1145
1146
/* If PTI is off there is no user PCID and nothing to flush. */
1146
1147
if (!static_cpu_has (X86_FEATURE_PTI ))
You can’t perform that action at this time.
0 commit comments