Bug 52975

Summary: CPUTYPE=k7 results in non-functional /boot/loader
Product: Base System Reporter: Garrett Wollman <wollman>
Component: i386Assignee: Remko Lodder <remko>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Garrett Wollman 2003-06-06 04:50:11 UTC
	CPUTYPE=k7 results in a boot loader that doesn't.  It appears to 
	be entirely unable to read the hard disk (although accesses to the
	floppy seem to work fine)

Fix: 

This is probably a compiler bug.  Workaround is:

	Add NO_CPU_CFLAGS=yo to /sys/boot/Makefile.inc and
	/sys/boot/i386/Makefile.inc

	This generates a working boot loader.

	I suspect that the compiler may be generating code to use
	vector instructions somewhere, but these instructions do not
	work in the boot loader's environment.
How-To-Repeat: 
	make world with CPUTYPE?=k7 in /etc/make.conf
	Reboot
	Find out that the boot loader is unable to read the hard disk.
Comment 1 Remko Lodder freebsd_committer freebsd_triage 2005-11-04 11:04:48 UTC
State Changed
From-To: open->feedback

Does this still apply? 

Currently my make.conf gives the following about AMD CPU's: 

#       (AMD CPUs)      opteron athlon64 athlon-mp athlon-xp athlon-4 
#                       athlon-tbird athlon k8 k6-3 k6-2 k6 k5 nocona 

I do not see a k7 in there, i think this is not without reason...
Comment 2 Remko Lodder freebsd_committer freebsd_triage 2005-11-04 11:06:55 UTC
Responsible Changed
From-To: freebsd-i386->remko

Assign the PR to me to recieve feedback
Comment 3 Remko Lodder freebsd_committer freebsd_triage 2005-12-26 14:49:46 UTC
State Changed
From-To: feedback->closed

No feedback was recieved, i will close the PR with the assumption 
that K7 is not mentioned in the examples listed and that might 
be with reason. If this is a incorrect closure, please give me 
feedback so that we can actually work on this.