linux-mips
[Top] [All Lists]

Re: 3 questions about linux-2.4.18 and R3000

To: Jun Sun <jsun@mvista.com>
Subject: Re: 3 questions about linux-2.4.18 and R3000
From: Alexandr Andreev <andreev@niisi.msk.ru>
Date: Mon, 27 May 2002 17:13:33 -0400
Cc: linux-mips@oss.sgi.com
Organization: niisi
References: <3CEEBBA9.5070809@niisi.msk.ru> <3CEEAC5F.6010802@mvista.com>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mozilla/5.0 (X11; U; Linux 2.4.17 i686; en-US; rv:0.9) Gecko/20010507
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;
 
<Prev in Thread] Current Thread [Next in Thread>