From owner-freebsd-arch@FreeBSD.ORG Sun Mar 13 13:13:40 2011 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C013106566C; Sun, 13 Mar 2011 13:13:40 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id B401C8FC0A; Sun, 13 Mar 2011 13:13:39 +0000 (UTC) Received: from outgoing.leidinger.net (p5B1539CA.dip.t-dialin.net [91.21.57.202]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 271F284400E; Sun, 13 Mar 2011 14:13:35 +0100 (CET) Received: from unknown (IO.Leidinger.net [192.168.2.110]) by outgoing.leidinger.net (Postfix) with ESMTP id DFF9F2AA9; Sun, 13 Mar 2011 14:13:31 +0100 (CET) Date: Sun, 13 Mar 2011 14:13:30 +0100 From: Alexander Leidinger To: Andriy Gapon Message-ID: <20110313141330.000016a2@unknown> In-Reply-To: <4D7C6DFC.8020504@freebsd.org> References: <201103120909.p2C99P2j010783@svn.freebsd.org> <20110312211423.00000f34@unknown> <4D7C6DFC.8020504@freebsd.org> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.16.0; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 271F284400E.A1663 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=0.317, required 6, autolearn=disabled, ALL_TRUSTED -1.00, SARE_LWSHORTT 1.24, TW_SV 0.08) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1300626816.35631@8w0DlGD8BuxBvSkhLNwqfA X-EBL-Spam-Status: No Cc: emulation@freebsd.org, arch@freebsd.org, Artem Belevich Subject: linux or linux32 on i386 (was: Re: svn commit: r219561 - in head/sys: cddl/dev/systrace modules/dtrace modules/dtrace/dtraceall modules/dtrace/systrace_freebsd32 modules/dtrace/systrace_linux32) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2011 13:13:40 -0000 On Sun, 13 Mar 2011 09:10:52 +0200 Andriy Gapon wrote: > on 13/03/2011 08:35 Artem Belevich said the following: > > On Sat, Mar 12, 2011 at 12:14 PM, Alexander Leidinger > > wrote: > >> But this looks like it will be named linux32 in any case. In the > >> short term I would prefer: > >> ---snip--- > >> #if defined(__amd64__) > >> #define MODNAME "linux32" > >> #elif defined(__i386__) > >> #define MODNAME "linux" > >> #endif > >> ---snip--- > > > > Makes sense. It's what's done with freebsd syscalls -- 'freebsd' for > > native syscalls, freebsd32 for 32-bit compat. > > BTW, in my opinion, it might not make a lot of sense. > That is, we can have native and compat FreeBSD system calls, but > Linux system calls are always compat and never native, whether the > emulation is for the same arch or not. Explicit suffix makes things > clearer. But that's just my opinion. So far we use sys/i386/linux and sys/amd64/linux32 as the directory structure. When the native linux code for amd64 arrives I would expect it is named linux and not linux64. On i386 we also do not refer to linux32 anywhere. It may not be the native ABI, but it is the native code size. I also doubt anyone would expect to see a linux64 on i386. IMO it is too late for a explicit suffix (this would be the onl place which is using it, all other places use plain linux and it would be a lot of changes necessary to change this) and it would be more consistent to use linux instead of linux32 on i386. > A public mailing list may be a better place to discuss this further. I switched to arch and emulation. Bye, Alexander.