Subject: Re: -current crashes on Power Mac G3 b&w (tr included)
To: Nathan J. Williams <nathanw@wasabisystems.com>
From: Donald Lee <MacPPC1@caution.icompute.com>
List: port-macppc
Date: 03/16/2005 22:47:36
At 11:41 AM -0500 3/16/05, Nathan J. Williams wrote:
>Timo Schoeler <wanker4freedom@web.de> writes:
>
>> NetBSD 2.99.16 (GENERIC) #0: Wed Mar  2 13:39:16 CET 2005
>>           tis@mcbain.es43-bln.macfinity.net:/usr/obj/sys/arch/macppc/compile/
>> panic: kernel diagnostic assertion "emsr & PSL_EE" failed: file
>> "/usr/src/sys/ar
>> ch/macppc/macppc/extintr.c", line 809
>> Stopped in pid 0.1 (swapper) at netbsd:cpu_Debugger+0x18:       lwz
>> r11, r1,
>>   0x0
>
>This looks an awful lot like my PR port-macppc/29559, which I fixed a
>few days after that (sys/arch/powerpc/powerpc/trap_subr.S rev 1.57, on
>4 March). Can you try slightly newer sources and see if it helps?
>
>        - Nathan

This looks like a bug in 1.6.2 as well.  Am I reading this right?  If
you end up in trap(), the code in 1.6.2 ends up enabling interrupts
unconditionally, so if you trap somewhere that interrupts are
disabled, you end up with a trip through the trap() with interrupts
enabled when they should not be - causing who knows what.

I'm trying to track down these sorts of problems on my server.
Should I be putting this patch into my 1.6.2 kernel?

-dgl-