Thread (6 messages) flat view 6 messages, 4 authors, 2005-09-26

Re: PATCH powerpc Merge asm-ppc*/rwsem.h

From: David Howells <dhowells@redhat.com>
Date: 2005-09-23 07:52:30

Anton Blanchard [off-list ref] wrote:
quoted
The counter should be "signed long" really.
Agreed, we should move to a 64bit count.
With a 64-bit counter, the constants should be:

#define RWSEM_UNLOCKED_VALUE		  0x0000000000000000L
#define RWSEM_ACTIVE_BIAS		  0x0000000000000001L
#define RWSEM_ACTIVE_MASK		  0x00000000ffffffffL
#define RWSEM_WAITING_BIAS		(-0x0000000100000000L)
#define RWSEM_ACTIVE_READ_BIAS		RWSEM_ACTIVE_BIAS
#define RWSEM_ACTIVE_WRITE_BIAS		(RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)

Just like in the asm-s390/rwsem.h.

David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help