syscall

Kostik Belousov kostikbel at gmail.com
Mon Oct 18 11:55:18 UTC 2010


On Mon, Oct 18, 2010 at 06:41:21PM +0700, Eugene Grosbein wrote:
> On 18.10.2010 18:11, Kostik Belousov wrote:
> 
> >> 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.
> 
> It seems, it's written here:
> 
> # less /usr/obj/usr/src/lib/libc/syscall.S
> #include "compat.h"
> #include "SYS.h"
> RSYSCALL(syscall)
> 
> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20101018/09261eb1/attachment.pgp


More information about the freebsd-hackers mailing list