mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
nptl: Consolidate sem_init implementations
Current sparc32 sem_init and default one only differ on sem.newsem.pad initialization. This patch removes sparc32 and sparc32v9 sem_init arch specific implementation and set sparc32 to use nptl default one. The default implementation sets the required sem.newsem.pad to 0 (which is ununsed in other architectures). I checked on i686 and a sparc32v9 build. * nptl/sem_init.c (sem_init): Init pad value to 0. * sysdeps/sparc/sparc32/sem_init.c: Remove file. * sysdeps/sparc/sparc32/sparcv9/sem_init.c: Likewise.
This commit is contained in:
@ -49,6 +49,8 @@ __new_sem_init (sem_t *sem, int pshared, unsigned int value)
|
||||
isem->data = value;
|
||||
#else
|
||||
isem->value = value << SEM_VALUE_SHIFT;
|
||||
/* pad is used as a mutex on pre-v9 sparc and ignored otherwise. */
|
||||
isem->pad = 0;
|
||||
isem->nwaiters = 0;
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user