From owner-freebsd-arm@FreeBSD.ORG Wed Feb 11 18:31:54 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6B293BD3 for ; Wed, 11 Feb 2015 18:31:54 +0000 (UTC) Received: from c.mail.sonic.net (c.mail.sonic.net [64.142.111.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 50876854 for ; Wed, 11 Feb 2015 18:31:54 +0000 (UTC) Received: from comporellon.tachypleus.net (polaris.tachypleus.net [75.101.50.44]) (authenticated bits=0) by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id t1BIL7cp014794 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 11 Feb 2015 10:21:08 -0800 Message-ID: <54DB9D93.6070702@freebsd.org> Date: Wed, 11 Feb 2015 10:21:07 -0800 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: freebsd-arm@freebsd.org Subject: Re: FreeBSD/arm64 MACHINE/MACHINE_ARCH identification References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Sonic-CAuth: UmFuZG9tSVZC0l33njHm44ffzbZrRPvhemt4d+qZAnnN1HaOiaca3CKGOuQhxGy05BI7IquSWYn3zN0pYz2u2M+pZtVhNyfeqy7euoGG9Oc= X-Sonic-ID: C;9DI0vxqy5BGM2uTWjn0JFw== M;+vOovxqy5BGM2uTWjn0JFw== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Feb 2015 18:31:54 -0000 On 02/11/15 09:41, Ed Maste wrote: > The FreeBSD/arm64 work in progress currently reports "arm64" for the > machine and processor type - i.e., uname -m and uname -p. It would probably also be good if we had MACHINE = arm here. -Nathan > It seems that the official, awkward name aarch64 is broadly used > elsewhere - for example, in toolchain triples and autoconf tests. To > save us grief in the future I think it is worth following suit: > > diff --git a/sys/arm64/include/param.h b/sys/arm64/include/param.h > index 5cd0445..525a0e7 100644 > --- a/sys/arm64/include/param.h > +++ b/sys/arm64/include/param.h > @@ -43,10 +43,10 @@ > #define STACKALIGN(p) ((uint64_t)(p) & ~STACKALIGNBYTES) > > #ifndef MACHINE > -#define MACHINE "arm64" > +#define MACHINE "aarch64" > #endif > #ifndef MACHINE_ARCH > -#define MACHINE_ARCH "arm64" > +#define MACHINE_ARCH "aarch64" > #endif > > I'm not proposing that we rename any of the source files. I believe > this approach is consistent with the Debian project - they call it the > "arm64" port, but report aarch64 from uname. > > I believe it will be much easier for us to carry around any > special-case s/aarch64/arm64/ in the base system (if necessary) than > trying to teach third-party software that the FreeBSD 64-bit ARM > architecture is called arm64 instead of aarch64. > > Any objections or concerns? > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >