64-bit atomic ops on 32-bit CPU -- was: ZFS .. on PowerPC ?

Peter Grehan grehan at freebsd.org
Tue Sep 30 21:37:36 UTC 2008


Hi Matt,

> Isn't there some kind of semaphore primitive in FreeBSD that can be
> used?

  The issue is the OpenSolaris ZFS code that makes liberal use of calls 
such as atomic_add_64(&ptr_to_uint64). This is emulated by having a 
global lock for all 64-bit atomic operations, but it would be better if 
this could be done without such workarounds on 32-bit ppc.

later,

Peter.


More information about the freebsd-ppc mailing list