On Thu, Jul 26, 2001 at 02:21:06PM -0700, Arun Sharma wrote:
> On Thu, Jul 26, 2001 at 11:15:40PM +0200, Bernd Walter wrote:
> > > static __inline__ int test_and_set_bit(int nr, volatile void * addr);
> >
> > -current has a lot of atomic functions in src/sys/i386/include/atomic.h.
>
> It has byte, word, int, long level operations - what I want is bit
> level.
You must have missing something.
My version reads the following:
[...]
ATOMIC_ASM(set, char, "orb %b2,%0", v)
ATOMIC_ASM(clear, char, "andb %b2,%0", ~v)
[...]
--
B.Walter COSMO-Project http://www.cosmo-project.de
[EMAIL PROTECTED] Usergroup [EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message