mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-12 14:20:13 +00:00
d1c09b2471
This patch implements various atomic and locking routines on RISC-V. We mandate the A extension on Linux-capable RISC-V systems, so this can rely on always having the various atomic instructions availiable. 2018-01-29 Palmer Dabbelt <palmer@sifive.com> * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file. * sysdeps/riscv/nptl/bits/semaphore.h: Likewise. * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise. * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
9 lines
248 B
C
9 lines
248 B
C
/* This kludge works around a libpthread static linking problem:
|
|
https://sourceware.org/bugzilla/show_bug.cgi?id=15648. */
|
|
|
|
#ifndef SHARED
|
|
# define __lll_lock_wait_private weak_function __lll_lock_wait_private
|
|
#endif
|
|
|
|
#include <lowlevellock.c>
|