From owner-freebsd-questions Mon Mar 17 15:45:42 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA12830 for questions-outgoing; Mon, 17 Mar 1997 15:45:42 -0800 (PST) Received: from smtp1.xs4all.nl (smtp1.xs4all.nl [194.109.6.51]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA12823 for ; Mon, 17 Mar 1997 15:45:38 -0800 (PST) Received: from asterix.xs4all.nl (root@asterix.xs4all.nl [194.109.6.11]) by smtp1.xs4all.nl (8.7.6/XS4ALL) with ESMTP id AAA07136 for ; Tue, 18 Mar 1997 00:45:28 +0100 (MET) Received: from plm.xs4all.nl (uucp@localhost) by asterix.xs4all.nl (8.7.5/8.7.2) with UUCP id AAA23616 for freebsd-questions@freebsd.org; Tue, 18 Mar 1997 00:31:05 +0100 (MET) Received: (from plm@localhost) by plm.xs4all.nl (8.8.5/8.7.3) id AAA01251; Tue, 18 Mar 1997 00:27:27 +0100 (MET) Date: Tue, 18 Mar 1997 00:27:27 +0100 (MET) Message-Id: <199703172327.AAA01251@plm.xs4all.nl> From: Peter Mutsaers MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: freebsd-questions@freebsd.org Subject: test and set instruction: how? Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Is there a (portable ?) way for a test-and-set instruction under FreeBSD? I don't even know whether the Intel CPU's provide such an instruction. If so, does FreeBSD offer an easy interface to it?