File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 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 19
19
#include <asm/cacheflush.h>
20
20
#include <asm/apic.h>
21
21
#include <asm/perf_event.h>
22
+ #include <asm/tlb.h>
22
23
23
24
#include "mm_internal.h"
24
25
@@ -1145,7 +1146,7 @@ STATIC_NOPV void native_flush_tlb_one_user(unsigned long addr)
1145
1146
bool cpu_pcide ;
1146
1147
1147
1148
/* Flush 'addr' from the kernel PCID: */
1148
- asm volatile ( " invlpg (%0)" :: "r" ( addr ) : "memory" );
1149
+ invlpg ( addr );
1149
1150
1150
1151
/* If PTI is off there is no user PCID and nothing to flush. */
1151
1152
if (!static_cpu_has (X86_FEATURE_PTI ))
You can’t perform that action at this time.
0 commit comments