Subject: Cause of fpu trap with current,
To: None <port-mac68k@NetBSD.org>
From: Bruce ONeel <edoneel@sdf.lonestar.org>
List: port-mac68k
Date: 01/13/2004 17:34:33
Hi,
Well, I've found the cause.
In sys/arch/mac68k/mac68k/machdep.c in the routine
cpu_startup(void) there is a call to
m68k_make_fpu_idle_frame();
which is fatal if you don't have a FPU.
The code is:
if (fputype != FPU_NONE)
m68k_make_fpu_idle_frame();
A bit of printf debugging shows that my LC040 has fputype
not set to FPU_NONE and therefore the branch is taken and
I fpu trap. If I comment out the call to
m68k_make_fpu_idle_frame();
I boot just fine. This all from a very recent current (Monday?
Sunday?)
I poked for a few minutes and I don't see where fputype is
set though.
Thanks!
cheers
bruce
In-Reply-To: <0HRD00B0ZXX7MZ@mbx.unige.ch>
References: <200401111833.i0BIWwBv024507@obelix.spectraweb.ch>
<677C7FEC-4466-11D8-B63C-000A957913F4@earthlink.net>
<2363A347-448F-11D8-BF3C-0003939C8E82@augustmail.com>
<5D83CDB4-44CA-11D8-B63C-000A957913F4@earthlink.net>
<0HRD00B0ZXX7MZ@mbx.unige.ch>
Bruce ONeel <edoneel@sdf.lonestar.org> wrote:
> Date: Mon, 12 Jan 2004 17:30:39 +0100
> From: Bruce ONeel <edoneel@sdf.lonestar.org>
> Subject: Re: fpu trap with current from 2 Jan
> To: David Rogers <davidrogers23@earthlink.net>
> Cc: port-mac68k@NetBSD.org
>
> Thanks, I'll look into that. A kernel built from yesterday's
> current did no better.
>
> cheers
>
> bruce
>
> David Rogers <davidrogers23@earthlink.net> wrote:
> > Date: Mon, 12 Jan 2004 00:41:35 -0600
> > From: David Rogers <davidrogers23@earthlink.net>
> > Subject: Re: fpu trap with current from 2 Jan
> > To: port-mac68k@NetBSD.org
> >
> > I have a kernel that I built on 12/28/03 that works just fine. I'm not
> > sure what changed between then and now.
> >
> > dave
> >
> > On Jan 11, 2004, at 5:37 PM, Bob Nestor wrote:
> >
> > > On Jan 11, 2004, at 12:46 PM, David Rogers wrote:
> > >
> > >> I've been getting something very similar right after it lists
> > >> available memory. It says Kernel Illegal Instruction Trap. I have a
> > >> IIci with a Daystar Turbo 040 installed so maybe there's more than
> > >> just FPU problems. Not sure though.
> > >>
> > >> Here is the dump:
> > >> trap type 2, code = 0x0, v = 0x0
> > >> kernel program counter = 0x1258e
> > >>
> > >> pid = 0, lid = 1, pc = 0001258E, ps = 2704, sfc = 1, dfc = 1
> > >>
> > >> dreg: 00000000 00000001 0011A290 00004AA0 8004002E FEE00020 00000000
> > >> 00000000
> > >> areg: 00153790 001B9E9C 0006A7B8 00123B68 00153940 01DF1698 001B9F60
> > >> FFFFCFFC
> > >>
> > >> Hope this helps. Anyone else having problems?
> > >
> > > Did you happen to leave AppleTalk enabled in MacOS before you booted
> > > into NetBSD?
> > >
> > > That seemed to cause the problem for me. Disabling AppleTalk before
> > > booting made the problem go away.
> > >
> > > -bob
> > >