Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Sep 2008 14:36:51 -0700
From:      Peter Grehan <grehan@freebsd.org>
To:        Matt Sealey <matt@genesi-usa.com>
Cc:        freebsd-ppc@freebsd.org
Subject:   Re: 64-bit atomic ops on 32-bit CPU -- was: ZFS .. on PowerPC ?
Message-ID:  <48E29BF3.40106@freebsd.org>
In-Reply-To: <48E28E58.1020901@genesi-usa.com>
References:  <B4645B39-9D9D-49C5-8F69-55704CD2F6AA@delfi-konsult.com>	<60ACBA3B-927C-4F2C-8680-A6B40B81E06C@mac.com>	<48DA84D5.4010109@semihalf.com>	<C725D17E-E199-4E70-BE56-07BD21783A7A@mac.com>	<48DA99F8.7070904@semihalf.com>	<111399E3-2BC7-4724-8AFB-A40F2A47E66D@mac.com>	<48DBC59C.3040101@semihalf.com> <48E28E58.1020901@genesi-usa.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48E29BF3.40106>