From owner-freebsd-hackers Thu Jun 29 20:59:59 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from turtle.looksharp.net (cc360882-a.strhg1.mi.home.com [24.2.221.22]) by hub.freebsd.org (Postfix) with ESMTP id 7080537B6E6 for ; Thu, 29 Jun 2000 20:59:48 -0700 (PDT) (envelope-from rmuir@looksharp.net) Received: from localhost (rmuir@localhost) by turtle.looksharp.net (8.9.3/8.9.3) with ESMTP id XAA67578; Thu, 29 Jun 2000 23:59:28 -0400 (EDT) (envelope-from rmuir@looksharp.net) Date: Thu, 29 Jun 2000 23:59:28 -0400 (EDT) From: Robert Muir To: John Polstra Cc: hackers@FreeBSD.ORG Subject: Re: Please run this test on an 80386 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG yes, it prints: This CPU does not support the cmpxchg instruction Robert Muir rmuir@looksharp.net On Thu, 29 Jun 2000, John Polstra wrote: > I am making some changes to FreeBSD's dynamic linker which require > the ability to find out whether the CPU running the program supports > the cmpxchg instruction. This instruction was introduced with > the 80486; it did not exist on the 80386. The attached program > attempts to determine whether the cmpxchg instruction is supported. > Unfortunately, I don't have an 80386 to test it on. I would > appreciate it if somebody with FreeBSD running on an 80386 would > compile the program, run it, and send me the output. To compile it, > just type: >=20 > cc -o sigill sigill.c >=20 > and then run it with >=20 > ./sigill >=20 > On an 80386 it should print out >=20 > This CPU does not support the cmpxchg instruction >=20 > Thanks in advance! >=20 > John > -- > John Polstra jdp@polstra.= com > John D. Polstra & Co., Inc. Seattle, Washington = USA > "Disappointment is a good sign of basic intelligence." -- Ch=F6gyam Tr= ungpa >=20 >=20 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message