diff options
| author | Jann Horn <jann@thejh.net> | 2015-03-24 19:40:43 +0100 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2015-03-29 18:09:56 +0200 |
| commit | 9ccd62fc425558dc1f77142443223722bc015c2c (patch) | |
| tree | 9afdff6f3615ad38638f90b9430af000f0e02a10 /man2/syscall.2 | |
| parent | 37daa840aff73ef76f4aa2c810ea9245621d2cd5 (diff) | |
| download | man-pages-9ccd62fc425558dc1f77142443223722bc015c2c.tar.gz | |
syscall.2: Add x32 ABI
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man2/syscall.2')
| -rw-r--r-- | man2/syscall.2 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/man2/syscall.2 b/man2/syscall.2 index ef8f3cfeb0..1f25255a5c 100644 --- a/man2/syscall.2 +++ b/man2/syscall.2 @@ -170,12 +170,18 @@ s390 svc 0 r1 r2 See below s390x svc 0 r1 r2 See below sparc/32 t 0x10 g1 o0 sparc/64 t 0x6d g1 o0 -x86_64 syscall rax rax +x86_64 syscall rax rax See below +x32 syscall rax rax See below .TE .PP For s390 and s390x, NR (the system call number) may be passed directly with "svc NR" if it is less than 256. +The x32 ABI uses the same instruction as the x86_64 ABI and is used on +the same processors. To differentiate between them, the bitmask +.I __X32_SYSCALL_BIT +is bitwise-ORed into the syscall number for syscalls under the x32 ABI. + On a few architectures, a register is used to indicate simple boolean failure of the system call: ia64 uses @@ -210,6 +216,7 @@ s390x r2 r3 r4 r5 r6 r7 - sparc/32 o0 o1 o2 o3 o4 o5 - sparc/64 o0 o1 o2 o3 o4 o5 - x86_64 rdi rsi rdx r10 r8 r9 - +x32 rdi rsi rdx r10 r8 r9 - .TE .PP The mips/o32 system call convention passes |
