Andrew Haley wrote:
Joseph Garvin wrote:On Fri, Jun 5, 2009 at 1:57 PM, Andrew Haley<aph@xxxxxxxxxx> wrote:i386 has lock incl, surely, so __sync_add_and_fetch isn't a problem. It's stuff like __sync_val_compare_and_swap you don't have.I thought the lock instruction didn't exist until the pentium pro?I have an actual paper 1989 vintage i386 manual, and lock is defined.
IIRC, lock was present from the original 8086/8088. David Daney.