Subject: Re: mbuf external storage sharing
To: None <tech-net@NetBSD.org>
From: Ignatios Souvatzis <ignatios@cs.uni-bonn.de>
List: tech-net
Date: 10/08/2004 12:03:56
--zhXaljGHf11kAtnf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Fri, Oct 08, 2004 at 10:51:59AM +0100, David Laight wrote:

> You can't do atomic increment on sparc, I don't think you can do it on
> ppc

IIRC, it's about 4 instructions on PPC - it has half-atomic instructions:

Lretry:
read-with-reservation
increment
write-if-I-still-have-the-reservation
branch-if-I-didnt Lretry

Works on cached memory only.

	-is

--zhXaljGHf11kAtnf
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: 2.6.i

iQEVAgUBQWZl/TCn4om+4LhpAQFusQf+PlSRdS5kPIy35Q/t8KKzDotksXPNxgUl
W1uQ5B8SAHI4yGhv75TaHPiENS8g8bwK9foOFOdA4oHTyDOLEDqA301MEGh+RuSB
iBvqbxzU6FAHgkRRJWS2sHOhNNd1dSIzoJHHCnm1X8Oz/ZSFOAorTafuMD6fgs9r
w/F2zx9wBfaiNylIYneFzTnublRM1tBOwE2BB6AjL6tqyF8pfSHaDNWVu6OQaCVQ
eKtMTdnuZEsgFu7trdmEFOh/LoxKJuHyJEX/ZRc63ZKvUap/ZnC+aHN6U0PSSBQT
EaGmhpv8VHvm2rM5/zQ1Cq8uZ4vobOO5hPKZ2wfoe/s49wbNEkbizg==
=2yo3
-----END PGP SIGNATURE-----

--zhXaljGHf11kAtnf--