Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Oct 2001 14:21:58 -0400 (EDT)
From:      Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   RE: cvs commit: src/sys/i386/include atomic.h
Message-ID:  <200110111821.f9BILwb78417@khavrinen.lcs.mit.edu>
In-Reply-To: <XFMail.011011111624.jhb@FreeBSD.org>
References:  <Pine.BSF.4.21.0110111150190.37124-100000@InterJet.elischer.org> <XFMail.011011111624.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Thu, 11 Oct 2001 11:16:24 -0700 (PDT), John Baldwin <jhb@FreeBSD.org> said:

> of atomic_cmpset() that works on a Dual Pentium II won't work on the 386
> because it will result in an illegal instruction fault since the 386 doesn't
> have cmpxchg.  One workaround is what the run time linker does for its locks

A better workaround is for the kernel to emulate the instruction.  It
won't be fast, but it will work.

-GAWollman


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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