On 12/31/2009 07:14 PM, Carlos O'Donell wrote:
On Tue, Dec 29, 2009 at 8:47 AM, Helge Deller<deller@xxxxxx> wrote:
2) Change return space register to sr7. sr3 is not set correctly
if the entry number is invalid.
Yep.
Have nasty suspicion that sr3 is getting hit...
Is the thought here that we take an interrupt, and sr3 is not
guaranteed saved/restored, while sr7 is guaranteed?
I don't see anything wrong with moving the gate earlier (unless
someone can come up with a case where an LWS may not want to gate).
It has the benefit of making the fast path 1 instruction shorter,
however I don't see that it makes the implementation more correct.
I tested the patch and the testcase in
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=561203
still segfaults.
Nevertheless, I think Dave's patch should be applied...
Helge
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html