Commit 107878bb authored by Andi Kleen's avatar Andi Kleen Committed by Andi Kleen

[PATCH] i386: Minor fixes & cleanup to tlb flush

(based on x86-64 changes)
- Add a proper memory clobber to invlpg
- Remove an unused extern
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
parent b1c78c0f
...@@ -36,8 +36,6 @@ ...@@ -36,8 +36,6 @@
: "memory"); \ : "memory"); \
} while (0) } while (0)
extern unsigned long pgkern_mask;
# define __flush_tlb_all() \ # define __flush_tlb_all() \
do { \ do { \
if (cpu_has_pge) \ if (cpu_has_pge) \
...@@ -49,7 +47,7 @@ extern unsigned long pgkern_mask; ...@@ -49,7 +47,7 @@ extern unsigned long pgkern_mask;
#define cpu_has_invlpg (boot_cpu_data.x86 > 3) #define cpu_has_invlpg (boot_cpu_data.x86 > 3)
#define __flush_tlb_single(addr) \ #define __flush_tlb_single(addr) \
__asm__ __volatile__("invlpg %0": :"m" (*(char *) addr)) __asm__ __volatile__("invlpg (%0)" ::"r" (addr) : "memory")
#ifdef CONFIG_X86_INVLPG #ifdef CONFIG_X86_INVLPG
# define __flush_tlb_one(addr) __flush_tlb_single(addr) # define __flush_tlb_one(addr) __flush_tlb_single(addr)
......
Markdown is supported
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