x86-64 TUTORIAL: CALLING CONVENTIONS


x86-64 TUTORIAL: ASSEMBLERS  |  x86-64 TUTORIAL: CPUID

SYSTEM CALLS

System calls are made using the syscall instruction on an x86-64 version of GNU/Linux as opposed to using int 0x80 on an x86 version of GNU/Linux. All programs are in long mode. Depending on the type of GNU/Linux system you use, the list of system calls can be found in /usr/include/asm/unistd_64.h for Debian-based systems or in /usr/include/asm-x86_64/unistd.h for Slackware, etc.

CALLING CONVENTION

System Calls

Function Calls


x86-64 TUTORIAL: ASSEMBLERS  |  x86-64 TUTORIAL: CPUID