On Thu, Oct 02, 2003 at 02:09:31AM +0200, Ralf Baechle wrote: > On Wed, Oct 01, 2003 at 04:50:23PM -0700, Jun Sun wrote: > > > This is an known problem. Please try the attached patch. > > No patch attached :-) > Doh! Here you go. Jun
diff -Nru link/arch/mips/mm/fault.c.orig link/arch/mips/mm/fault.c --- link/arch/mips/mm/fault.c.orig Fri May 10 18:50:08 2002 +++ link/arch/mips/mm/fault.c Fri May 23 10:39:10 2003 @@ -260,7 +260,7 @@ pgd_t *pgd, *pgd_k; pmd_t *pmd, *pmd_k; - pgd = tsk->active_mm->pgd + offset; + pgd = (pgd_t *) pgd_current[smp_processor_id()] + offset; pgd_k = init_mm.pgd + offset; if (!pgd_present(*pgd)) {