From: Andi Kleen Date: Tue, 26 Sep 2006 08:52:29 +0000 (+0200) Subject: [PATCH] i386: Minor fixes & cleanup to tlb flush X-Git-Tag: v2.6.19-rc1~1077^2~177 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=107878bb14b1fb6bddc646f4d5e72e8beaa2f6a2;p=linux-2.6-omap-h63xx.git [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: Andi Kleen --- diff --git a/include/asm-i386/tlbflush.h b/include/asm-i386/tlbflush.h index d57ca5c540b..360648b0f2b 100644 --- a/include/asm-i386/tlbflush.h +++ b/include/asm-i386/tlbflush.h @@ -36,8 +36,6 @@ : "memory"); \ } while (0) -extern unsigned long pgkern_mask; - # define __flush_tlb_all() \ do { \ if (cpu_has_pge) \ @@ -49,7 +47,7 @@ extern unsigned long pgkern_mask; #define cpu_has_invlpg (boot_cpu_data.x86 > 3) #define __flush_tlb_single(addr) \ - __asm__ __volatile__("invlpg %0": :"m" (*(char *) addr)) + __asm__ __volatile__("invlpg (%0)" ::"r" (addr) : "memory") #ifdef CONFIG_X86_INVLPG # define __flush_tlb_one(addr) __flush_tlb_single(addr)