GNU
int 0x80、sysenter、syscall
參考資訊:
1. int80h
2. how-to-use-sysenter-under-linux
3. syscall-or-sysenter-on-32-bits-linux
4. what-does-sysenter-do-in-64-bit-long-mode-on-linux
5. what-is-the-compatible-subset-of-intels-and-amds-x86-64-implementations
6. why-does-syscall-compile-in-nasm-32-bit-output-while-popa-does-not-compile-in-64
使用時機如下:
平台 | 呼叫方式 |
---|---|
x64 | int 0x80、syscall |
x86 | int 0x80、sysenter |