From owner-freebsd-current@freebsd.org Sat Jun 23 20:38:21 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7BF7010055E1 for ; Sat, 23 Jun 2018 20:38:21 +0000 (UTC) (envelope-from mmacy@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 26F3291E06; Sat, 23 Jun 2018 20:38:21 +0000 (UTC) (envelope-from mmacy@freebsd.org) Received: from mail-it0-f42.google.com (mail-it0-f42.google.com [209.85.214.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) (Authenticated sender: mmacy) by smtp.freebsd.org (Postfix) with ESMTPSA id E1AAF1BC6C; Sat, 23 Jun 2018 20:38:20 +0000 (UTC) (envelope-from mmacy@freebsd.org) Received: by mail-it0-f42.google.com with SMTP id m194-v6so7339422itg.2; Sat, 23 Jun 2018 13:38:20 -0700 (PDT) X-Gm-Message-State: APt69E2GU3bs+tjKj0Oww8ovWZ/YQXBZQiQdVse9yfUpCo+JWhsbMZ4E SBW3u7Okb2lVxpsoxpTAIhXDhun21PSWiE8HDeQ= X-Google-Smtp-Source: ADUXVKIA+hWSBoQd77qF3tNTSTaITC/ZJrcpohn1xlxp5aPq5i5vaga+TSYDbxgQsktUGBTrx2rMP9CeYD15OxJEfbw= X-Received: by 2002:a24:8ac1:: with SMTP id v184-v6mr2711140itd.7.1529786300463; Sat, 23 Jun 2018 13:38:20 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Matthew Macy Date: Sat, 23 Jun 2018 13:38:07 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: atomic_testandclear_, atomic_testandset_ To: Adrian Chadd , John Baldwin , "br@freebsd.org" , freebsd-current , marius@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2018 20:38:21 -0000 It turns out ck already has equivalent primitives. Pardon the noise. -M On Sat, Jun 23, 2018 at 12:18 Matthew Macy wrote: > The functions in the subject are both documented in atomic(9) and are > implemented by every arch except sparc64 and MIPS. I have some code in > review that uses them that I intend to commit once the various design > issues are addressed. Please implement them so that those targets can > remain part of universe. > > Thanks in advance. > -M >