MICROPATCH: define rwlock_init() for ALPHA platforms
Hi,
Here's a small patch which defines rwlock_init() for alphas. It's defined for all the other platforms.
Reto
asm-alpha/spinlock.h Thu May 3 11:01:46 2001 renamed from asm-alpha/spinlock.h.orig Thu May 3 11:00:08 2001 +1 -0
@@ -95,6 +95,7 @@ } /*__attribute__((aligned(32)))*/ rwlock_t; #define RW_LOCK_UNLOCKED (rwlock_t) { 0, 0 } +#define rwlock_init(lp) do { *(lp) = RW_LOCK_UNLOCKED; } while(0) #if DEBUG_RWLOCK extern void write_lock(rwlock_t * lock);