syscall

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


On Mon, Oct 18, 2010 at 05:27:21PM +0700, Eugene Grosbein wrote:
> Hi!
> 
> I've written an utility in C that does not link libc normally,
> instead it includes <sys/syscall.h> and calls syscall().
> It works nice for FreeBSD8/i386.
> 
> Now I'm porting it to FreeBSD8/amd64 and just cannot find
> how to call syscall() directly from C code.
Show what you tried to do. Syscall() at the C-level works the same
(well, almost, but the differences are too subtle for this discussion)
for all architectures.

> 
> 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.

> 
> What about amd64?
Indeed, what is your issue with amd64 ?

> 
> Eugene Grosbein
> 
> P.S. Please reply to the list.
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
-------------- 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/7f6fc342/attachment.pgp


More information about the freebsd-hackers mailing list