Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Mar 2011 14:13:30 +0100
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Andriy Gapon <avg@freebsd.org>
Cc:        emulation@freebsd.org, arch@freebsd.org, Artem Belevich <fbsdlist@src.cx>
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)
Message-ID:  <20110313141330.000016a2@unknown>
In-Reply-To: <4D7C6DFC.8020504@freebsd.org>
References:  <201103120909.p2C99P2j010783@svn.freebsd.org> <20110312211423.00000f34@unknown> <AANLkTinC5vF6ax%2BrSEga3BPvCN4L3C_adahHv6ELD9ko@mail.gmail.com> <4D7C6DFC.8020504@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 13 Mar 2011 09:10:52 +0200 Andriy Gapon <avg@freebsd.org> wrote:

> on 13/03/2011 08:35 Artem Belevich said the following:
> > On Sat, Mar 12, 2011 at 12:14 PM, Alexander Leidinger
> > <Alexander@leidinger.net> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110313141330.000016a2>