Subject: port-mac68k/25081: port-mac68k
To: None <>
From: None <>
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
>Originator:     Bruce O'neel
>Release:        NetBSD Release 2.0 from 3 Apr 2004
System: NetBSD 1.6.2_STABLE NetBSD 1.6.2_STABLE (LAIN-$Revision: 1.633 $) #0: Thu Apr 1 10:16:07 EST 2004 macppc
Architecture: m68k
Machine: mac68k

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

	if (fputype != FPU_NONE)

	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.
	Run to build for mac68k, try to boot either the netbsd-GENERICSBC or 
	netbsd-INSTALLSBC kernels on a LC040.

	See above for a patch which works for LC040s but not probably if you have a FPU.