Author Topic: Linux x86-64bit kernel interface ABI and mmap.  (Read 18268 times)

Offline oblique

  • Jr. Member
  • *
  • Posts: 2
Linux x86-64bit kernel interface ABI and mmap.
« 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...

Offline oblique

  • Jr. Member
  • *
  • Posts: 2
Re: Linux x86-64bit kernel interface ABI and mmap.
« Reply #1 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