diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-07-26 22:58:52 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-07-26 22:58:52 +0000 |
commit | aa80a9f1984f6552fbeef13bd76be82050be6a16 (patch) | |
tree | 60368ec4f3ba38ac1a3b8bddf8c206ff61b2140f | |
parent | a27ad9b5cf49fea1a55141868f4bf02c2d91bfc1 (diff) |
Apply the update_mmu_cache patch also to 32-bit mips.
-rw-r--r-- | arch/mips/mm/andes.c | 3 | ||||
-rw-r--r-- | arch/mips/mm/r2300.c | 8 | ||||
-rw-r--r-- | arch/mips/mm/r4xx0.c | 6 |
3 files changed, 14 insertions, 3 deletions
diff --git a/arch/mips/mm/andes.c b/arch/mips/mm/andes.c index d76b5f141..631d6f002 100644 --- a/arch/mips/mm/andes.c +++ b/arch/mips/mm/andes.c @@ -1,5 +1,4 @@ -/* $Id: andes.c,v 1.10 2000/02/13 20:52:05 harald Exp $ - * +/* * andes.c: MMU and cache operations for the R10000 (ANDES). * * Copyright (C) 1996 David S. Miller (dm@engr.sgi.com) diff --git a/arch/mips/mm/r2300.c b/arch/mips/mm/r2300.c index 88acda86a..690e3698f 100644 --- a/arch/mips/mm/r2300.c +++ b/arch/mips/mm/r2300.c @@ -540,7 +540,13 @@ void update_mmu_cache(struct vm_area_struct * vma, pte_t *ptep; int idx, pid; - pid = (get_entryhi() & 0xfc0); + /* + * Handle debugger faulting in for debugee. + */ + if (current->active_mm != vma->vm_mm) + return; + + pid = get_entryhi() & 0xfc0; #ifdef DEBUG_TLB if((pid != (vma->vm_mm->context & 0xfc0)) || (vma->vm_mm->context == 0)) { diff --git a/arch/mips/mm/r4xx0.c b/arch/mips/mm/r4xx0.c index 4e7f0bbf7..279676616 100644 --- a/arch/mips/mm/r4xx0.c +++ b/arch/mips/mm/r4xx0.c @@ -2399,6 +2399,12 @@ void update_mmu_cache(struct vm_area_struct * vma, pte_t *ptep; int idx, pid; + /* + * Handle debugger faulting in for debugee. + */ + if (current->active_mm != vma->vm_mm) + return; + pid = get_entryhi() & 0xff; #ifdef DEBUG_TLB |