git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
include
/
asm-i386
/
mach-xen
/
asm
/
tlbflush.h
diff --git
a/include/asm-i386/mach-xen/asm/tlbflush.h
b/include/asm-i386/mach-xen/asm/tlbflush.h
index
4d13a65
..
eacd52d
100644
(file)
--- a/
include/asm-i386/mach-xen/asm/tlbflush.h
+++ b/
include/asm-i386/mach-xen/asm/tlbflush.h
@@
-1,20
+1,24
@@
#ifndef _I386_TLBFLUSH_H
#define _I386_TLBFLUSH_H
#ifndef _I386_TLBFLUSH_H
#define _I386_TLBFLUSH_H
-#include <linux/config.h>
#include <linux/mm.h>
#include <asm/processor.h>
#include <linux/mm.h>
#include <asm/processor.h>
-#define __flush_tlb() xen_tlb_flush()
-#define __flush_tlb_global() xen_tlb_flush()
-#define __flush_tlb_all() xen_tlb_flush()
+#ifdef CONFIG_PARAVIRT
+#include <asm/paravirt.h>
+#else
+#define __flush_tlb() __native_flush_tlb()
+#define __flush_tlb_global() __native_flush_tlb_global()
+#define __flush_tlb_single(addr) __native_flush_tlb_single(addr)
+#endif
-extern unsigned long pgkern_mask;
+#define __native_flush_tlb() xen_tlb_flush()
+#define __native_flush_tlb_global() xen_tlb_flush()
+#define __native_flush_tlb_single(addr) xen_invlpg(addr)
+#define __flush_tlb_all() xen_tlb_flush()
#define cpu_has_invlpg (boot_cpu_data.x86 > 3)
#define cpu_has_invlpg (boot_cpu_data.x86 > 3)
-#define __flush_tlb_single(addr) xen_invlpg(addr)
-
#define __flush_tlb_one(addr) __flush_tlb_single(addr)
/*
#define __flush_tlb_one(addr) __flush_tlb_single(addr)
/*