From owner-freebsd-mips@FreeBSD.ORG Sun Dec 12 17:44:17 2010 Return-Path: Delivered-To: mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 311E3106566C for ; Sun, 12 Dec 2010 17:44:17 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id E55D78FC15 for ; Sun, 12 Dec 2010 17:44:16 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id oBCHbGPj028274; Sun, 12 Dec 2010 10:37:18 -0700 (MST) (envelope-from imp@bsdimp.com) Message-ID: <4D05084C.10308@bsdimp.com> Date: Sun, 12 Dec 2010 10:37:16 -0700 From: Warner Losh User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101029 Thunderbird/3.1.6 MIME-Version: 1.0 To: Tijl Coosemans References: <201012121417.28343.tijl@coosemans.org> In-Reply-To: <201012121417.28343.tijl@coosemans.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Kostik Belousov , mips@FreeBSD.org, Bruce Evans Subject: Re: mips sig_atomic_t X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2010 17:44:17 -0000 On 12/12/2010 06:17, Tijl Coosemans wrote: > Hi Warner, > > In mips/include/signal.h sig_atomic_t is defined as int. Do you know if > this can be 64 bit on the N64 ABI like on other 64 bit archs? How about > N32? For reference, the POSIX definition of sig_atomic_t states: possibly > volatile-qualified integer type of an object that can be accessed as an > atomic entity, even in the presence of asynchronous interrupts. LD and SD can be used to load/store an aligned 64-bit word in a mips64-like ISA. For mips32 ISAs, a 64-bit quantity is loaded/stored with two LW/SW instructions. N64 and N32 can load/store these. However, N32 has an int set to 32-bits. I think this is OK. Warner