]> Pileus Git - ~andy/linux/blobdiff - include/asm-i386/tlbflush.h
[PATCH] Pass struct dev pointer to dma_cache_sync()
[~andy/linux] / include / asm-i386 / tlbflush.h
index ab216e1370efb85fb3b6f73dab1ad588bf1382f7..360648b0f2b3888235e95f8b7420879934a9e0bc 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef _I386_TLBFLUSH_H
 #define _I386_TLBFLUSH_H
 
-#include <linux/config.h>
 #include <linux/mm.h>
 #include <asm/processor.h>
 
@@ -37,8 +36,6 @@
                        : "memory");                                    \
        } while (0)
 
-extern unsigned long pgkern_mask;
-
 # define __flush_tlb_all()                                             \
        do {                                                            \
                if (cpu_has_pge)                                        \
@@ -50,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)