From owner-freebsd-arm@FreeBSD.ORG Wed Feb 11 17:41:50 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 450E4E6A for ; Wed, 11 Feb 2015 17:41:50 +0000 (UTC) Received: from mail-qg0-x22b.google.com (mail-qg0-x22b.google.com [IPv6:2607:f8b0:400d:c04::22b]) (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 F2D72CD for ; Wed, 11 Feb 2015 17:41:49 +0000 (UTC) Received: by mail-qg0-f43.google.com with SMTP id i50so3894226qgf.2 for ; Wed, 11 Feb 2015 09:41:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=vBFNA4k6J1ZH5VN0vievYNJeemhLc3dP2ry+6JLPvdI=; b=VQQniogCwiwO2vtKHasL7YcC/faFI2ruEY7w+j9HT0nK1S3mqylia07zYLYXbZCujI VWu4PmlojK1Cx/5JidmPBKNy4knCvNe67lOhy5D9l2yLEY7tLuF1Q4ymbMJVYGNL5js9 5GvgwB54xPcJNz0T62bnsUHN9PXkG3zp7iJ+u5/NUFiVMepAHRCN/X3jQRU1MUy+UQKq zrpMyk9jrVKsab2UE2XHkA85zsmB7IWhZn6YBvwRCZMj4sJyjAB2WIF90602wA7MvCHW kRUChhT5OwfSdMrnJ0/U577T0Uk25IYMVOVWCOr16QTqsVCIDzWEzXkyQozdwRelM9mq 1sAQ== X-Received: by 10.140.48.137 with SMTP id o9mr31608293qga.89.1423676509153; Wed, 11 Feb 2015 09:41:49 -0800 (PST) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.140.39.209 with HTTP; Wed, 11 Feb 2015 09:41:28 -0800 (PST) From: Ed Maste Date: Wed, 11 Feb 2015 12:41:28 -0500 X-Google-Sender-Auth: WfbC8_7c-yMiGElPqVZhPam-UFs Message-ID: Subject: FreeBSD/arm64 MACHINE/MACHINE_ARCH identification To: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 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 17:41:50 -0000 The FreeBSD/arm64 work in progress currently reports "arm64" for the machine and processor type - i.e., uname -m and uname -p. 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?