NASM - The Netwide Assembler
NASM Forum => Using NASM => Topic started by: nobody on March 23, 2009, 04:24:33 AM
-
I've been scouring the net trying to find the syscall documentation for the 64-bit linux kernels. No luck so far.
I've found a list of them in /usr/include/asm/unistd_64.h, but the comments aren't very helpfull.
Anybody have a link for me?
Also, one more thing I've been unable to figure out, what's the difference between syscall (using nasm, of course) and int 80h? Syscall works, but 80h segfaults. I really need to find out what syscall is doing.
Thanks in advance,
eilenbeb
-
Ok. Figured out the syscall thing. Not supposed to do int 80h directly in linux64.
Now all I'm looking for is the docs on the syscall function codes.
Laters,
eilenbeb
-
I found what I was looking for. Here goes:
The fuction names & numbers from /usr/include/asm/unistd_64.h.
The function descriptions are in manpages! Do a 'man llseek', for instance.
The latest manpages can be downloaded from http://www.kernel.org/pub/linux/docs/manpages/ (http://www.kernel.org/pub/linux/docs/manpages/) if for some reason someone doesn't have man2.
And of course the ABI is important. I got mine from http://www.x86-64.org/documentation.html. (http://www.x86-64.org/documentation.html.)
Laters,
eilenbeb
-
Oops. the second link doesn't work because of the trailing dot.
http://www.x86-64.org/documentation.html (http://www.x86-64.org/documentation.html)
Laters
eilenbeb