mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Update.
* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL): Define for 2.4+ kernels. * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which are known to have the vfork syscall. Don't confuse the CPUs branch prediction unit by jumping to the return address.
This commit is contained in:
@ -214,6 +214,11 @@
|
||||
# define __ASSUME_SET_THREAD_AREA_SYSCALL 1
|
||||
#endif
|
||||
|
||||
/* The vfork syscall on x86 was definitely available in 2.4. */
|
||||
#if __LINUX_KERNEL_VERSION >= 132097 && defined __i386__
|
||||
# define __ASSUME_VFORK_SYSCALL 1
|
||||
#endif
|
||||
|
||||
/* There are an infinite number of PA-RISC kernel versions numbered
|
||||
2.4.0. But they've not really been released as such. We require
|
||||
and expect the final version here. */
|
||||
|
Reference in New Issue
Block a user