NASM - The Netwide Assembler

NASM Forum => Programming with NASM => Topic started by: oblique on August 04, 2010, 03:17:15 AM

Title: Linux x86-64bit kernel interface ABI and mmap.
Post by: oblique on August 04, 2010, 03:17:15 AM
Hello,

I found that i have to use r10 for the 4th argument of mmap syscall. I read Appendix A of ABI and it says:

Quote
User-level applications use as integer registers for passing the sequence
%rdi, %rsi, %rdx, %rcx, %r8 and %r9. The kernel interface uses %rdi,
%rsi, %rdx, %r10, %r8 and %r9.

Why mmap use kernel interface?
Is there any other syscalls that use it?


thanks.

PS: sorry for my bad english...
Title: Re: Linux x86-64bit kernel interface ABI and mmap.
Post by: oblique on August 04, 2010, 06:31:14 PM
i found what means... user-level is when you call a function form shared object and kernel-interface is when you call syscalls