summaryrefslogtreecommitdiff
path: root/sys/arch/alpha/include/mutex.h
AgeCommit message (Collapse)Author
2021-08-25- In kern_mutex.c, if MUTEX_CAS() is not defined, define it in terms ofthorpej
atomic_cas_ulong(). - For arm, ia64, m68k, mips, or1k, riscv, vax: don't define our own MUTEX_CAS(), as they either use atomic_cas_ulong() or equivalent (atomic_cas_uint() on m68k). - For alpha and sparc64, don't define MUTEX_CAS() in terms of their own _lock_cas(), which has its own memory barriers; the call sites in kern_mutex.c already have the appropriate memory barrier calls. Thus, alpha and sparc64 can use default definition. - For sh3, don't define MUTEX_CAS() in terms of its own _lock_cas(); atomic_cas_ulong() is strong-aliased to _lock_cas(), therefore defining our own MUTEX_CAS() is redundant. Per thread: https://mail-index.netbsd.org/tech-kern/2021/07/25/msg027562.html
2021-07-14Disable the mutex_spin_{enter,exit}() fast-path stubs while I investigatethorpej
some an odd IPL-related panic that seems to be related (that I can fairly reliabily reproduce on an LCA45).
2021-07-12Optimized fast-paths for mutex_spin_enter() and mutex_spin_exit().thorpej
2020-09-23Move the compile-time assert outside of the __MUTEX_PRIVATE guard.thorpej
2020-09-23Move the simple lock used for spin mutexes into the sub-structure thatthorpej
contains the spin lock IPL field. This shrinks kmutex_t to sizeof(uintptr_t) on Alpha. This should have been done in rev 1.3 when the lock ID field was removed, but better late than never, I guess.
2019-11-29Nix now-unused definitions of MUTEX_GIVE/MUTEX_RECEIVE.riastradh
2019-11-29Nix mb_* on alpha.riastradh
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2007-11-21make kmutex_t and krwlock_t smaller by killing lock id.yamt
ok'ed by Andrew Doran.
2007-02-09Merge newlock2 to head.ad