From nobody@FreeBSD.org  Mon May 16 15:45:24 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2B88416A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 16 May 2005 15:45:24 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0D5B743DA4
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 16 May 2005 15:45:24 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j4GFjKkm087677
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 16 May 2005 15:45:20 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j4GFjKYl087676;
	Mon, 16 May 2005 15:45:20 GMT
	(envelope-from nobody)
Message-Id: <200505161545.j4GFjKYl087676@www.freebsd.org>
Date: Mon, 16 May 2005 15:45:20 GMT
From: ZHANG Yu <zhangy@haier-ic.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: /boot/loader causes reboot due to CFLAGS+= -msse3
X-Send-Pr-Version: www-2.3

>Number:         81111
>Category:       i386
>Synopsis:       [build] /boot/loader causes reboot due to CFLAGS+= -msse3
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-i386
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 16 15:50:01 GMT 2005
>Closed-Date:    Tue Jul 13 20:17:21 UTC 2010
>Last-Modified:  Tue Jul 13 20:17:21 UTC 2010
>Originator:     ZHANG Yu
>Release:        5.4-RELEASE
>Organization:
Haier (Beijing) IC Design Co., Ltd.
>Environment:
FreeBSD www.adnap.cn 5.4-STABLE FreeBSD 5.4-STABLE #5: Tue May 10 23:32:43 CST 2005     root@www.adnap.cn:/usr/obj/usr/src/sys/ADNAP  i386

>Description:
My CPU is Celeron-D 2.4GHz, which supports the SSE3 instruction set.  So I added the following line in /etc/make.conf:

CFLAGS+= -mfpmath=sse -mmmx -msse -msse2 -msse3 ...

With this -msse3 option, the /boot/loader caused the PC to reboot every time before loading the kernel.
>How-To-Repeat:
1. recompile and install /usr/src/sys/boot/ with CFLAGS+= -msse3 option.
2. reboot PC
>Fix:
I sugguest adding a -mno-sse3 for CFLAGS in the file /usr/src/sys/boot/i386/Makefile.inc.
>Release-Note:
>Audit-Trail:

From: Matteo Riondato <rionda@gufi.org>
To: bug-followup@FreeBSD.org, zhangy@haier-ic.com, obrien@freebsd.org
Cc:  
Subject: Re: i386/81111: /boot/loader causes reboot due to CFLAGS+= -msse3
Date: Wed, 8 Jun 2005 13:35:18 +0200

 obrien@ committed a fix for a similar problem in revision 1.10 of
 sys/boot/i386/Makefile.inc : he added -mno-mmx -mno-3dnow -mno-sse
 -mno-sse2 . Perhaps -mno-sse3 should be added too.
 I'm CC'ing obrien@ to know his opinion about this.
 
 Best Regards
 -- 
 Rionda aka Matteo Riondato
 G.U.F.I. Staff Member (http://www.gufi.org)
 FreeSBIE Developer (http://www.freesbie.org)

From: Matteo Riondato <rionda@gufi.org>
To: bug-followup@freebsd.org
Cc:  
Subject: [rionda@gufi.org: Re: i386/81111: /boot/loader causes reboot due to CFLAGS+= -msse3]
Date: Wed, 8 Jun 2005 13:41:45 +0200

 ----- Forwarded message from Matteo Riondato <rionda@gufi.org> -----
 
 From: Matteo Riondato <rionda@gufi.org>
 To: bug-followup@FreeBSD.org, zhangy@haier-ic.com, obrien@freebsd.org
 Date: Wed, 8 Jun 2005 13:35:18 +0200
 Subject: Re: i386/81111: /boot/loader causes reboot due to CFLAGS+= -msse3
 
 obrien@ committed a fix for a similar problem in revision 1.10 of
 sys/boot/i386/Makefile.inc : he added -mno-mmx -mno-3dnow -mno-sse
 -mno-sse2 . Perhaps -mno-sse3 should be added too.
 I'm CC'ing obrien@ to know his opinion about this.
 
 Best Regards
 -- 
 Rionda aka Matteo Riondato
 G.U.F.I. Staff Member (http://www.gufi.org)
 FreeSBIE Developer (http://www.freesbie.org)
 
 ----- End forwarded message -----
State-Changed-From-To: open->patched 
State-Changed-By: ache 
State-Changed-When: Fri Jul 15 14:05:46 GMT 2005 
State-Changed-Why:  
-mno-sse3 added in -current 

http://www.freebsd.org/cgi/query-pr.cgi?pr=81111 

From: Gavin Atkinson <gavin@FreeBSD.org>
To: bug-followup@FreeBSD.org
Cc: ache@FreeBSD.org
Subject: Re: i386/81111: /boot/loader causes reboot due to CFLAGS+= -msse3
Date: Fri, 30 May 2008 15:10:23 +0100

 Fixed in HEAD and RELENG_7, still needs MFC of
 src/sys/boot/i386/Makefile.inc 1.11 to RELENG_6.
State-Changed-From-To: patched->closed 
State-Changed-By: remko 
State-Changed-When: Tue Jul 13 20:17:20 UTC 2010 
State-Changed-Why:  
Given the age of the PR and the development on 6.x I do not think this 
is worth keeping open. if someone wants to MFC this to 6.x please do. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=81111 
>Unformatted:
