glibc/sysdeps/riscv/nptl/libc-lowlevellock.c
Palmer Dabbelt d1c09b2471
RISC-V: Atomic and Locking Routines
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.
2018-01-29 10:27:17 -08:00

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>