Jun Sun wrote: > I took a look of the arch_get_unmapped_area(), and it looks fine to me. > > Can you try the following changes and let me know what happens? > > 1) change COLOUR_ALIGN > #define COLOUR_ALIGN(addr,pgoff) addr OK, It works for me. > > We have been using gcc 2.9.5 and binutils 2.10.x for R3000 CPUs for > quite a while with no problems. It seems newer gcc and binutiles are > fine too. > I understand, but is there any __official__ recommended versions of these utils? http://oss.sgi.com/mips/mips-howto.html is out-of-date :(
diff -pru linux_2_4_18_orig/arch/mips/mm/tlb-r3k.c linux_2_4_18/arch/mips/mm/tlb-r3k.c --- linux_2_4_18_orig/arch/mips/mm/tlb-r3k.c Fri Apr 26 07:50:07 2002 +++ linux_2_4_18/arch/mips/mm/tlb-r3k.c Mon May 27 16:36:14 2002 @@ -118,7 +118,7 @@ void local_flush_tlb_range(struct mm_str void local_flush_tlb_page(struct vm_area_struct *vma, unsigned long page) { - if (!vma || vma->vm_mm->context != 0) { + if (vma && vma->vm_mm->context) { unsigned long flags; int oldpid, newpid, idx; diff -pru linux_2_4_18_orig/arch/mips/mm/tlb-r4k.c linux_2_4_18/arch/mips/mm/tlb-r4k.c --- linux_2_4_18_orig/arch/mips/mm/tlb-r4k.c Fri Apr 26 07:50:07 2002 +++ linux_2_4_18/arch/mips/mm/tlb-r4k.c Mon May 27 16:31:45 2002 @@ -140,7 +140,7 @@ void local_flush_tlb_range(struct mm_str void local_flush_tlb_page(struct vm_area_struct *vma, unsigned long page) { - if (!vma || vma->vm_mm->context != 0) { + if (vma && vma->vm_mm->context) { unsigned long flags; int oldpid, newpid, idx;