From owner-cvs-all Thu Oct 11 11:22: 5 2001 Delivered-To: cvs-all@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 2568337B405; Thu, 11 Oct 2001 11:21:59 -0700 (PDT) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.11.4/8.11.4) id f9BILwb78417; Thu, 11 Oct 2001 14:21:58 -0400 (EDT) (envelope-from wollman) Date: Thu, 11 Oct 2001 14:21:58 -0400 (EDT) From: Garrett Wollman Message-Id: <200110111821.f9BILwb78417@khavrinen.lcs.mit.edu> To: John Baldwin Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: RE: cvs commit: src/sys/i386/include atomic.h In-Reply-To: References: Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: 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