syscall

Eugene Grosbein eugen at grosbein.pp.ru
Mon Oct 18 11:41:24 UTC 2010


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.

Thanks.

Eugene Grosbein


More information about the freebsd-hackers mailing list