Following links explain x86-32 system call conventions for both UNIX (BSD flavor) & Linux:
-
http://www.int80h.org/bsdasm/#system-calls
-
http://www.freebsd.org/doc/en/books/developers-handbook/x86-system-calls.html
But what are the x86-64 system call conventions on both UNIX & Linux?