From owner-freebsd-smp Mon Jun 28 9:12: 6 1999 Delivered-To: freebsd-smp@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [209.157.86.2]) by hub.freebsd.org (Postfix) with ESMTP id F2BE715433 for ; Mon, 28 Jun 1999 09:11:58 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.3/8.9.1) id JAA22481; Mon, 28 Jun 1999 09:11:47 -0700 (PDT) (envelope-from dillon) Date: Mon, 28 Jun 1999 09:11:47 -0700 (PDT) From: Matthew Dillon Message-Id: <199906281611.JAA22481@apollo.backplane.com> To: Peter Wemm Cc: Alan Cox , Terry Lambert , Bakul Shah , julian@whistle.com, freebsd-smp@freebsd.org Subject: Re: high-efficiency SMP locks - submission for review References: <19990628105659.8E8F582@overcee.netplex.com.au> Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org :Actually, I have a bigger issue with it.. cmpxchgl etc doesn't exist on :all x86 cpus. To make a kernel that boots on the current cpus (including :the 486) we either have to conditionalize the inlines or use the :universally available (and implicitly locked) xchg instruction - but that's :a test-and-set style operation rather than atomic_cmpex. : :Cheers, :-Peter My "Intel486 Processor Family" book - note the 486, lists the cmpxchgl instruction. Of course, I've never actually tried it on a 486. I dunno whether the 386 implements it, though. -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message