linux-mips
[Top] [All Lists]

Re: Build failure for R3000 DECstation

To: Harald Koerfgen <Harald.Koerfgen@home.ivm.de>
Subject: Re: Build failure for R3000 DECstation
From: Jun Sun <jsun@mvista.com>
Date: Wed, 15 Nov 2000 12:17:54 -0800
Cc: linux-mips@oss.sgi.com, "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>, Ralf Baechle <ralf@oss.sgi.com>
References: <XFMail.001115204613.Harald.Koerfgen@home.ivm.de>
Sender: owner-linux-mips@oss.sgi.com
Harald Koerfgen wrote:
> > I also doubt if k0 is absolutely non-zero after a context ...
> 
> That's not the problem here, yes, it is. At least for the the CONFIG_CPU_R3000
> case. Have a look at include/asm-mips/stackframe.h, especially the R3000
> version of the RESTORE_SP_AND_RET macro.
> 

I did not doubt the non-zero value of k0.  I really doubted the
approach: a userland primitive is based on non-documented,
non-guarranteed kernel stack restoring code.  Once something changes in
kernel, you will get really obscure bugs.

Jun

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