summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2009-01-05 03:08:45 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:27:21 +0200
commit7a89d69cb22bb897100c9acc3d3bde0d36f60a98 (patch)
treecf40ce74de6158e4eb6faf6f4053e9f0768b6823
parent8ea98ac6482a3c0fa2bee57b558fefe79b04db7e (diff)
2009-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
* i386/intel/pmap.c (INVALIDATE_TLB): For now, disable use of invlpg.
-rw-r--r--ChangeLog2
-rw-r--r--i386/intel/pmap.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index cf4cb4b..d0125e2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,7 +6,7 @@
(invlpg_linear): ... this. Use movw instead of movl to set KERNEL_DS
selector. Use LINEAR_DS selector instead of USER_DS selector.
* i386/intel/pmap.c (INVALIDATE_TLB): Call invlpg_linear instead of
- invlpg_user.
+ invlpg_user. For now, disable use of invlpg.
2008-12-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
diff --git a/i386/intel/pmap.c b/i386/intel/pmap.c
index 7ce3fb3..d46f645 100644
--- a/i386/intel/pmap.c
+++ b/i386/intel/pmap.c
@@ -331,12 +331,16 @@ lock_data_t pmap_system_lock;
#define MAX_TBIS_SIZE 32 /* > this -> TBIA */ /* XXX */
+#if 0
#define INVALIDATE_TLB(s, e) { \
if (((e) - (s)) > 32 * PAGE_SIZE) \
flush_tlb(); \
else \
invlpg_linear(s, e); \
}
+#else
+#define INVALIDATE_TLB(s, e) flush_tlb()
+#endif
#if NCPUS > 1