Subject: port-mac68k/25081: port-mac68k
To: None <gnats-bugs@gnats.netbsd.org>
From: None <edoneel@sdf.lonestar.org>
List: netbsd-bugs
Date: 04/07/2004 04:45:37
>Number:         25081
>Category:       port-mac68k
>Synopsis:       LC040 (and possibly all non FPU system) crash on boot
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-mac68k-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 07 08:46:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Bruce O'neel
>Release:        NetBSD Release 2.0 from 3 Apr 2004
>Organization:
	
>Environment:
	
	
System: NetBSD lain.ziaspace.com 1.6.2_STABLE NetBSD 1.6.2_STABLE (LAIN-$Revision: 1.633 $) #0: Thu Apr 1 10:16:07 EST 2004 john@lain.ziaspace.com:/usr/src/sys/arch/macppc/compile/LAIN macppc
Architecture: m68k
Machine: mac68k
>Description:
	

	In sys/arch/mac68k/mac68k/machdep.c in the routine cpu_startup(void) there is
	the code

	if (fputype != FPU_NONE)
			m68k_make_fpu_idle_frame();

	This is fatal on a LC040 since there is no FPU.  It seems that fputype is not getting
	set early enough or is set improperly.

	Commenting this out fixes things for a non FPU system, but, of course, is the wrong
	answer for FPU systems.

	The System: entry above is the build system, not the mac68k system running.
>How-To-Repeat:
	
	Run build.sh to build for mac68k, try to boot either the netbsd-GENERICSBC or 
	netbsd-INSTALLSBC kernels on a LC040.
>Fix:
	

	See above for a patch which works for LC040s but not probably if you have a FPU.
>Release-Note:
>Audit-Trail:
>Unformatted: