Re: _syscall2 in PIC code on ix86

From: Jamie Lokier (lkd@tantalophile.demon.co.uk)
Date: Tue Jan 18 2000 - 05:31:59 EST


Jakub Jelinek wrote:
> syscall() is an external function in glibc, not an inline.
> And it saves all needed registers around it.
> In fact, I don't see what you need inline syscall macro for outside of the
> kernel actually. Performance critical syscalls are in libc, the rest (like
> create_module) really can waste 10 additional instructions.

If you're using using threads without pthreads, you need to use the
syscalls for every syscall in every thread but one, if you don't want to
clobber errno.

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jan 23 2000 - 21:00:17 EST