From owner-freebsd-arm@FreeBSD.ORG Thu Feb 12 16:05:44 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 1855CC0E for ; Thu, 12 Feb 2015 16:05:44 +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 BEC446C0 for ; Thu, 12 Feb 2015 16:05:43 +0000 (UTC) Received: by mail-qg0-f43.google.com with SMTP id i50so8683137qgf.2 for ; Thu, 12 Feb 2015 08:05:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=GOqTYRgj05ouhUO5RYrVig8IkINu6Zf0w2C5QF+OIYs=; b=DEUgm3Lhsxo6+5H1X+DcutxVMG4J/oK6OHfDzFLblcEWef0fmL91yuo7wsNsATsavp 55oDV93n8baoM47TlaphbPB+6ME+WlfIZ7OL4P/Nc6B+MNqHwsCdeGYJdqimiu6d7WZY q8GLNacnp4tfdeDWGmDaUFTbHYdEQMFp8hiKjHKxDB5dF+bTwWa5C5I2fF22gl2bZVSg 0OzBV0nBWJdg2lWBqAooRJAGdPQsVMkYXFk8/aE+Xj7+0952b3AP9SElx+NQW+3LDdr5 kvSSNi388Axi0ch1BY5RAeeC3jRqBJZOMQrKsOBkwQjmhKDNlJY99zQ0ELoZ3pe2RsCM 8/mA== X-Received: by 10.140.48.137 with SMTP id o9mr11411123qga.89.1423757142798; Thu, 12 Feb 2015 08:05:42 -0800 (PST) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.140.39.209 with HTTP; Thu, 12 Feb 2015 08:05:22 -0800 (PST) In-Reply-To: <71E9C1B9-F819-420B-90A5-A36D58E71817@bsdimp.com> References: <607BF592-A09B-4DB4-9872-C9E63066AB57@bsdimp.com> <71E9C1B9-F819-420B-90A5-A36D58E71817@bsdimp.com> From: Ed Maste Date: Thu, 12 Feb 2015 11:05:22 -0500 X-Google-Sender-Auth: xN3Mb-ebQZijlHlToCEv8Z-Y2Q4 Message-ID: Subject: Re: FreeBSD/arm64 MACHINE/MACHINE_ARCH identification To: Warner Losh Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 16:05:44 -0000 On 12 February 2015 at 01:54, Warner Losh wrote: > > They moved the sources in the kernel from aarch64 to arm64. I=E2=80=99m s= ure. Oh - I don't care what directory Linux puts the kernel source in, only what's reported by uname. As far as I can tell that has always been aarch64 for uname -m. > config.guess uses uname -p: > > *:FreeBSD:*:*) > UNAME_PROCESSOR=3D`/usr/bin/uname -p` > echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed= -e 's/[-(].*//'` > exit ;; Ah, yes - it looks like this has changed repeatedly over time, and I must have looked at a rather outdated config.guess. It's clear from this snippet though that this is a special case for FreeBSD, and most other cases rely on uname -m. I also found a few other configure-like scripts that only use uname -m. > so uname -p must be =E2=80=98aarch64=E2=80=99 since that=E2=80=99s what i= s expected. Yes, I agree this is necessary. > uname -m must > be arm64 unless we move our kernel implementation to sys/aarch64 from the > sys/arm64 it is now. We might decide that "uname -m" has to be aarch64 to match expectations of third-party software set by other operating systems. If that in turn means we have to move the kernel source, so be it.