From owner-freebsd-stable@FreeBSD.ORG Fri Dec 24 02:22:37 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 17E7416A558 for ; Fri, 24 Dec 2004 02:22:37 +0000 (GMT) Received: from smtp004.bizmail.sc5.yahoo.com (smtp004.bizmail.sc5.yahoo.com [66.163.175.81]) by mx1.FreeBSD.org (Postfix) with SMTP id E5F5A43D1D for ; Fri, 24 Dec 2004 02:22:36 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from unknown (HELO optimator.noacks.org) (noackjr@supercrime.org@70.240.189.26 with login) by smtp004.bizmail.sc5.yahoo.com with SMTP; 24 Dec 2004 02:22:36 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id A4F35630E; Thu, 23 Dec 2004 20:22:35 -0600 (CST) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 33280-09; Thu, 23 Dec 2004 20:22:23 -0600 (CST) Received: from www.noacks.org (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id 3139C61D4; Thu, 23 Dec 2004 20:22:23 -0600 (CST) Received: from 192.168.1.9 (SquirrelMail authenticated user noackjr); by www.noacks.org with HTTP; Thu, 23 Dec 2004 20:22:23 -0600 (CST) Message-ID: <3336.192.168.1.9.1103854943.squirrel@192.168.1.9> In-Reply-To: <41CB5C1D.6020503@chillt.de> References: <41CB5C1D.6020503@chillt.de> Date: Thu, 23 Dec 2004 20:22:23 -0600 (CST) From: "Jon Noack" To: "Bartosz Fabianowski" User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: amavisd-new at noacks.org cc: freebsd-stable@freebsd.org Subject: Re: Recent CPUTYPE changes breaking kernel on Centrino X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Dec 2004 02:22:37 -0000 Bartosz Fabianowski wrote: > I posted this question a few days ago, but it got lost in a thread I fear. > > With the recent changes to bsd.cpu.mk, the setting "CPUTYPE=pentium-m" > in make.conf now gets picked up and leads to GCC flags being set > accordingly. Unfortunately, something gets enabled that the Pentium M > (actually a P3 with some additional features) does not support. What > happens then is that a newly built world works just fine, while the > kernel does not even boot. Both the boot loader and the kernel itself > cause instant reboots at startup. > > I'm wondering if somebody knowledgeable with the GCC flags for a P3 > would have a clue which flag or feature it is that could be triggering > this. I reported this same issue in October with my Athlon-XP. Here was the last message of that thread (includes -save-temps data): http://lists.freebsd.org/pipermail/freebsd-current/2004-November/042127.html It appears like setting the CPUTYPE results in gcc producing bad code on my Athlon-XP. If I build _just_ the loader with a good gcc and CPUTYPE?=athlon-xp, everything works. However, if I build the loader as part of a buildworld with CPUTYPE?=athlon-xp, the loader is bad. Thus, the issue appears to be that setting CPUTYPE might produce a broken gcc (perhaps only when using -march). Jon