Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Oct 2010 14:54:55 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Eugene Grosbein <eugen@grosbein.pp.ru>
Cc:        hackers@freebsd.org
Subject:   Re: syscall
Message-ID:  <20101018115455.GH2392@deviant.kiev.zoral.com.ua>
In-Reply-To: <4CBC3261.8040308@grosbein.pp.ru>
References:  <4CBC2109.4030303@grosbein.pp.ru> <20101018111131.GE2392@deviant.kiev.zoral.com.ua> <4CBC3261.8040308@grosbein.pp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

--qJ1PC0yZrEAstpRC
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Oct 18, 2010 at 06:41:21PM +0700, Eugene Grosbein wrote:
> On 18.10.2010 18:11, Kostik Belousov wrote:
>=20
> >> For arm, i386 and mips there are:
> >>
> >> lib/libc/arm/sys/syscall.S
> >> lib/libc/i386/sys/syscall.S
> >> lib/libc/mips/sys/syscall.S
> > amd64 syscall() wrapper code is autogenerated.
>=20
> It seems, it's written here:
>=20
> # less /usr/obj/usr/src/lib/libc/syscall.S
> #include "compat.h"
> #include "SYS.h"
> RSYSCALL(syscall)
>=20
> Well, I can just copy there three lines to ./syscall.S
> and add the file to gcc command line.

I already told you that the syscall(2) wrapper is auto-generated on amd64.
The official way to get it is to link with libc.

--qJ1PC0yZrEAstpRC
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (FreeBSD)

iEYEARECAAYFAky8NY8ACgkQC3+MBN1Mb4gcnQCcCDrlNKgl54oLtOqjQf3N8oV8
xSIAn2cO+oOC5c93IEJKqiJIjDIU1O5u
=ejry
-----END PGP SIGNATURE-----

--qJ1PC0yZrEAstpRC--



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