linux-mips
[Top] [All Lists]

Re: segfaults with 2.4.8

To: linux-mips@oss.sgi.com
Subject: Re: segfaults with 2.4.8
From: Atsushi Nemoto <nemoto@toshiba-tops.co.jp>
Date: Mon, 03 Sep 2001 17:35:50 +0900 (JST)
In-reply-to: <20010903100155.A5219@gandalf.physik.uni-konstanz.de>
Organization: TOSHIBA Personal Computer System Corporation
References: <3B91089E.5050900@csh.rit.edu> <20010902202810.A14288@paradigm.rfc822.org> <20010903100155.A5219@gandalf.physik.uni-konstanz.de>
Sender: owner-linux-mips@oss.sgi.com
>>>>> On Mon, 3 Sep 2001 10:01:56 +0200, Guido Guenther 
>>>>> <guido.guenther@gmx.net> said:
flo> That is definitly a cache issue - The 2nd level Boardcache of the
flo> R5000 indy is still unfixed.
guenther> Not 100% sure about that. 2.4.5 handles this stuff fine
guenther> while 2.4.8 segfaults(it might be that we just trigger this
guenther> caching issues occasionaly though).

This might be the problem of recent entry.S I reported on 8/31.

I saw a strange SEGFAULT too and a following patch fixed the problem
(at least for me).


diff -ur linux.sgi/arch/mips/kernel/entry.S linux/arch/mips/kernel/entry.S
--- linux.sgi/arch/mips/kernel/entry.S  Sun Aug 26 22:32:47 2001
+++ linux/arch/mips/kernel/entry.S      Mon Sep  3 17:15:51 2001
@@ -44,17 +44,15 @@
 tracesys_exit: jal     syscall_trace
                b       ret_from_sys_call
 
-EXPORT(ret_from_irq)
-EXPORT(ret_from_exception)
-               lw      t0, PT_STATUS(sp)       # returning to kernel mode?
-               andi    t0, t0, KU_USER
-               bnez    t0, ret_from_sys_call
-               j       restore_all
-
 reschedule:    jal     schedule 
 
+EXPORT(ret_from_irq)
+EXPORT(ret_from_exception)
 EXPORT(ret_from_sys_call)
                .type   ret_from_irq,@function
+               lw      t0, PT_STATUS(sp)       # returning to kernel mode?
+               andi    t0, t0, KU_USER
+               beqz    t0, restore_all
 
                mfc0    t0, CP0_STATUS  # need_resched and signals atomic test
                ori     t0, t0, 1
---
Atsushi Nemoto

<Prev in Thread] Current Thread [Next in Thread>