From owner-freebsd-current@FreeBSD.ORG Thu Jun 2 20:24:58 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F73416A41C for ; Thu, 2 Jun 2005 20:24:58 +0000 (GMT) (envelope-from pawel.worach@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DB9743D1F for ; Thu, 2 Jun 2005 20:24:57 +0000 (GMT) (envelope-from pawel.worach@gmail.com) Received: by zproxy.gmail.com with SMTP id 12so626812nzp for ; Thu, 02 Jun 2005 13:24:54 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=sldbykUH111MzaBLnS3cdg0TTVtLaWXgIQIX6PwyO+yZe/3JCzoErdOB/RVVbpWtSIlfQ7JB7RbM0NG0JBDpN/JWVz5aDquTiDDjjW/HSaZlB5NbyO8fuSYt0b7vJl+Qoge24NSTxilOMEK6WGPBrmcBpOUD9DFv2wuMKW4PMSU= Received: by 10.36.222.74 with SMTP id u74mr348365nzg; Thu, 02 Jun 2005 13:24:53 -0700 (PDT) Received: from ?192.168.1.200? ([213.64.231.30]) by mx.gmail.com with ESMTP id 38sm1284917nzk.2005.06.02.13.24.51; Thu, 02 Jun 2005 13:24:53 -0700 (PDT) Message-ID: <429F6B11.2070407@gmail.com> Date: Thu, 02 Jun 2005 22:24:49 +0200 From: Pawel Worach User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050526) X-Accept-Language: en-us, en MIME-Version: 1.0 To: obrien@freebsd.org References: <20050518051111.GA33262@Athena.infor.org> <20050520164349.GD6982@dragon.NUXI.org> <428E1815.8080500@samsco.org> <200505221453.44007.peter@wemm.org> <429105D8.6000106@samsco.org> <20050523021527.GA62693@dragon.NUXI.org> <42914446.4000203@gmail.com> <42992034.3080403@gmail.com> <20050531181121.GA85431@dragon.NUXI.org> In-Reply-To: <20050531181121.GA85431@dragon.NUXI.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, David Gurvich Subject: Re: Newest loader from CVS not working X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jun 2005 20:24:58 -0000 David O'Brien wrote: > On Sun, May 29, 2005 at 03:51:48AM +0200, Pawel Worach wrote: > >>I did some more investigation into this and found that MMX registers are >>used in the FICL code in the pentium-m case. Here is a full diff of >>sys/boot built with CPUTYPE?=pentium2 and pentium-m. > > > This is great! > I know what needs to be done now. > Hi David, I found two more problems, after beeing really puzzled why the p-m loader works fine after a build where the installed world was built with p2 and the next p-m build breaks the loader when installed world was built with p-m. It seems like libstand uses mmx registers and the sys/boot build uses the installed version of libstand instead of the one in obj/. libstand p2 vs. p-m save-temps diff: http://62.119.221.30/boot/libstand.diff wfm fix: --- lib/libstand/Makefile.orig Thu Jun 2 22:13:31 2005 +++ lib/libstand/Makefile Thu Jun 2 22:13:24 2005 @@ -20,6 +20,7 @@ .endif .if ${MACHINE_ARCH} == "i386" CFLAGS+= -mpreferred-stack-boundary=2 +CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 .endif .if ${MACHINE_ARCH} == "powerpc" CFLAGS+= -msoft-float -D_STANDALONE -- Pawel