From owner-freebsd-stable@FreeBSD.ORG Tue Mar 1 15:40:06 2005 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 7806616A506 for ; Tue, 1 Mar 2005 15:40:06 +0000 (GMT) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id A46D343D41 for ; Tue, 1 Mar 2005 15:40:05 +0000 (GMT) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.13.1/8.13.1) with ESMTP id j21FdvvU016606 for ; Tue, 1 Mar 2005 18:39:57 +0300 (MSK) (envelope-from marck@rinet.ru) Date: Tue, 1 Mar 2005 18:39:57 +0300 (MSK) From: Dmitry Morozovsky To: stable@FreeBSD.org Message-ID: <20050301183251.E14643@woozle.rinet.ru> X-NCC-RegID: ru.rinet MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: amd64 and CPUTYPE: i386 loader unusable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Mar 2005 15:40:06 -0000 Dear colleagues, marck@gwhx:/usr/src> uname -a FreeBSD gwhx.rinet.ru 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #0: Tue Mar 1 08:22:54 UTC 2005 marck@gwhx.rinet.ru:/usr/obj/lh/src/sys/MINI amd64 defining CPUTYPE=athlon64 in /etc/make conf renders loader unusable: it builds with athlon64 optimization, and crashes (reboots) immediately. The following patch fixes the problem for me. Index: sys/boot/i386/Makefile.inc =================================================================== RCS file: /home/ncvs/src/sys/boot/i386/Makefile.inc,v retrieving revision 1.9 diff -u -r1.9 Makefile.inc --- sys/boot/i386/Makefile.inc 9 Feb 2004 14:11:55 -0000 1.9 +++ sys/boot/i386/Makefile.inc 1 Mar 2005 15:32:44 -0000 @@ -9,6 +9,7 @@ LDFLAGS+= -nostdlib .if ${MACHINE_ARCH} == "amd64" +CPUTYPE= i686 CFLAGS+= -m32 LDFLAGS+= -m elf_i386_fbsd AFLAGS+= --32 Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------