diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/sparc/kernel-features.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/sparc/kernel-features.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/sparc/kernel-features.h b/sysdeps/unix/sysv/linux/sparc/kernel-features.h index 2fd12cb7ce..64d714036e 100644 --- a/sysdeps/unix/sysv/linux/sparc/kernel-features.h +++ b/sysdeps/unix/sysv/linux/sparc/kernel-features.h @@ -40,3 +40,17 @@ /* sparc only supports ipc syscall. */ #undef __ASSUME_DIRECT_SYSVIPC_SYSCALLS + +/* SPARC kernel Kconfig does not define CONFIG_CLONE_BACKWARDS, however it + has the same ABI as if it did, implemented by sparc-specific code + (sparc_do_fork). + + It also has a unique return value convention: + + Parent --> %o0 == child's pid, %o1 == 0 + Child --> %o0 == parent's pid, %o1 == 1 + + Which required a special macro to correct issue the syscall + (INLINE_CLONE_SYSCALL). */ +#undef __ASSUME_CLONE_DEFAULT +#define __ASSUME_CLONE_BACKWARDS 1 |