From owner-freebsd-arm@freebsd.org Sat Nov 7 07:10:35 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C9F3AA289A3 for ; Sat, 7 Nov 2015 07:10:35 +0000 (UTC) (envelope-from gabdelmalik@uniridge.com.au) Received: from mail.uniridge.com.au (ec2-54-206-17-100.ap-southeast-2.compute.amazonaws.com [54.206.17.100]) by mx1.freebsd.org (Postfix) with ESMTP id 877E61C90 for ; Sat, 7 Nov 2015 07:10:34 +0000 (UTC) (envelope-from gabdelmalik@uniridge.com.au) Received: from [192.168.11.50] (ip-192-168-11-50.ap-southeast-2.compute.internal [192.168.11.50]) by mail.uniridge.com.au (Postfix) with ESMTP id 5FA764A6C for ; Sat, 7 Nov 2015 18:10:33 +1100 (EST) From: George Abdelmalik Subject: atomic_testandset_int seems unimplemented Organization: Uniridge Pty Ltd To: freebsd-arm@freebsd.org Message-ID: <563DA3E8.2060802@uniridge.com.au> Date: Sat, 7 Nov 2015 18:10:32 +1100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Nov 2015 07:10:35 -0000 Hi, My reading of atomic(9) implies that the atomic_testandset_* family of functions should be present on the arm architecture, however I don't see any evidence of it in any of the expected locations, ./sys/arm/include/atomic-v4.h ./sys/arm/include/atomic-v6.h ./sys/arm/include/atomic.h Is there some impediment within the architecture which doesn't make that semantic possible or is it just that there is no in-tree consumer yet? Any thoughts on this matter would be appreciated, or better yet a possible implementation - sadly for me assembly is not my strength. Regards, George. -- George Abdelmalik Director Principal Software Engineer Uniridge Pty Ltd http://www.uniridge.com.au/