From owner-freebsd-arm@FreeBSD.ORG Thu Feb 12 00:22:23 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 09F9812E for ; Thu, 12 Feb 2015 00:22:23 +0000 (UTC) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C66763B4 for ; Thu, 12 Feb 2015 00:22:22 +0000 (UTC) Received: by iecrd18 with SMTP id rd18so8268844iec.5 for ; Wed, 11 Feb 2015 16:22:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=JvUbTqWvfE9nwWjUkr6JyFrGwjUd9DUp+BonH4aIH38=; b=fvu+TANWA0MiqdFanYUVMQfwczqs/H2LJo7p0F1ENRQLYw+O6C6VbvzNe6DCmoO5Wp pr3gQ6THHszcGntUJvTFf2pcUxEXBLB+AoJq+D/97wI9Ydb3eC4f3qZa3NcvLfaYTzCt MDGpfTzwaFskeWjld3wFUXpQfYuG+mGs/wMkhtqSubD5UCuOSeG3Endu+oVainrkzTiM VO77J/Yi+hWaV95EH65Vm1VyTl5lXkJ1h/tuuaiQKbI/Vaa9hKeHB6RnEU1Tqwwl4DNZ EuTr7nPi5kBKyc6q1G/A1X6PC9Ryzp6DRbGgUX0Y2MGH49lgg0OEAuYey/5Eg/2C9/9R U+MQ== X-Gm-Message-State: ALoCoQn9X158BDYRLYl8fVeSBefVpt99b4F5kl8Dw5/CZUU+eE4bJ79725qHISgLTP6eM/fb4+p8 X-Received: by 10.107.31.16 with SMTP id f16mr1626053iof.88.1423700536155; Wed, 11 Feb 2015 16:22:16 -0800 (PST) Received: from netflix-mac-wired.bsdimp.com ([50.253.99.174]) by mx.google.com with ESMTPSA id sd7sm144095igb.20.2015.02.11.16.22.15 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 11 Feb 2015 16:22:15 -0800 (PST) Sender: Warner Losh Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Subject: Re: FreeBSD/arm64 MACHINE/MACHINE_ARCH identification From: Warner Losh In-Reply-To: <54DBAF15.60007@ignoranthack.me> Date: Wed, 11 Feb 2015 17:22:14 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <7CC61B0E-8630-4DB2-A4BC-8C22B33AAD77@bsdimp.com> References: <54DB9D93.6070702@freebsd.org> <54DBAF15.60007@ignoranthack.me> To: sbruno@freebsd.org X-Mailer: Apple Mail (2.2070.6) Cc: freebsd-arm@freebsd.org 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: Thu, 12 Feb 2015 00:22:23 -0000 > On Feb 11, 2015, at 12:35 PM, Sean Bruno = wrote: >=20 > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 >=20 > On 02/11/15 10:21, Nathan Whitehorn wrote: >>=20 >> 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. >>=20 >> It would probably also be good if we had MACHINE =3D arm here.=20 >> -Nathan >>=20 >=20 > TARGET=3Darm TARGET_ARCH=3Daarch64 is much more friendly to my qemu > universe as well. Is there going to be more than one TARGET_ARCH in > aarch64? Is there code shared between TARGET_ARCH=3Darmv6 and > TARGET_ARCH=3Daarch64? MACHINE_CPUARCH takes care of those issues. If the kernel is implemented in sys/arm, MACHINE should be arm. if it is = in sys/arm64, it should be arm64. The MACHINE type corresponds directly to where we = have the kernel files, and having something that=E2=80=99s MACHINE that=E2=80=99s = different than this is going to be an enormous pita in lots of places. Don=E2=80=99t do it :) Warner > sean >=20 >>> It seems that the official, awkward name aarch64 is broadly used=20 >>> elsewhere - for example, in toolchain triples and autoconf tests. >>> To save us grief in the future I think it is worth following >>> suit: >>>=20 >>> 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) >>>=20 >>> #ifndef MACHINE -#define MACHINE "arm64" +#define >>> MACHINE "aarch64" #endif #ifndef MACHINE_ARCH -#define >>> MACHINE_ARCH "arm64" +#define MACHINE_ARCH >>> "aarch64" #endif >>>=20 >>=20 >=20 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2 >=20 > iQF8BAEBCgBmBQJU268TXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w > ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx > MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5ktS0IALDbc9d+ql6EoEU/NelZ7X27 > tS9oyXaGDBR6o2SU2v7NU5mZqwizsn4wzaLqwUbIOlrohlrAcHIW9A4yR98nUvxo > 5eCK+Vwv3ZqSD8EtnVkd7Y+Mr2RUlAG9i3+rHgBsyHhjp85uYK1xg8K3xrUqdHEU > GxALJReudIvrnCF4d05vyFYIUgqt7/1s17Ti4XE+Y1neOQlQ6Kmx9sXE0mEyah08 > 2mCCwQNjlSu5xOXzW0daMCtCo0AftPfD2ACwhw2ZQQIyLj8qwKVuChAfi5+Hdfy5 > TfV0SZmVbai11GCh3pOIQm6js3X21XIUiTSslVrn4745sN5cHHYZc/rQgoB3Lnw=3D > =3DjLJD > -----END PGP SIGNATURE----- > _______________________________________________ > 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"