From: NIIBE Y. <gn...@ch...> - 2000-08-20 01:10:12
|
This is the patch. It works for me. 2000-08-20 NIIBE Yutaka <gn...@m1...> * arch/sh/mm/fault.c (update_mmu_cache): Bug fix. This routine is called by ptrace when PTE does not have information. Index: arch/sh/mm/fault.c =================================================================== RCS file: /cvsroot/linuxsh/kernel/arch/sh/mm/fault.c,v retrieving revision 1.18 diff -u -p -r1.18 fault.c --- arch/sh/mm/fault.c 2000/08/12 07:17:48 1.18 +++ arch/sh/mm/fault.c 2000/08/20 01:07:12 @@ -313,6 +313,12 @@ void update_mmu_cache(struct vm_area_str } #endif + /* Ptrace may call this routine. */ + if (vma && current->active_mm != vma->vm_mm) { + restore_flags(flags); + return; + } + /* Set PTEH register */ pteaddr = (address & MMU_VPN_MASK) | get_asid(); ctrl_outl(pteaddr, MMU_PTEH); |