From owner-freebsd-mips@FreeBSD.ORG Mon Dec 13 14:36:20 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 01A801065670 for ; Mon, 13 Dec 2010 14:36:20 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay010.isp.belgacom.be (mailrelay010.isp.belgacom.be [195.238.6.177]) by mx1.freebsd.org (Postfix) with ESMTP id 8C9528FC12 for ; Mon, 13 Dec 2010 14:36:19 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEACC2BU1bsZ+k/2dsb2JhbACkAHnCA4VKBJAT Received: from 164.159-177-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.177.159.164]) by relay.skynet.be with ESMTP; 13 Dec 2010 15:06:50 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.4/8.14.4) with ESMTP id oBDE6lQL003660; Mon, 13 Dec 2010 15:06:49 +0100 (CET) (envelope-from tijl@coosemans.org) From: Tijl Coosemans To: Warner Losh Date: Mon, 13 Dec 2010 15:06:34 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.5.2; i386; ; ) References: <201012121417.28343.tijl@coosemans.org> <4D05084C.10308@bsdimp.com> In-Reply-To: <4D05084C.10308@bsdimp.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1379318.OyzAihz26h"; protocol="application/pgp-signature"; micalg=pgp-sha256 Content-Transfer-Encoding: 7bit Message-Id: <201012131506.45650.tijl@coosemans.org> 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: Mon, 13 Dec 2010 14:36:20 -0000 --nextPart1379318.OyzAihz26h Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Sunday 12 December 2010 18:37:16 Warner Losh wrote: > On 12/12/2010 06:17, Tijl Coosemans wrote: >> 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=20 > mips64-like ISA. For mips32 ISAs, a 64-bit quantity is loaded/stored=20 > with two LW/SW instructions. >=20 > N64 and N32 can load/store these. However, N32 has an int set to=20 > 32-bits. I think this is OK. I'm still not sure if I understand the relations between the different acronyms correctly. Are these statements correct? There's a MIPS32 ISA and a MIPS64 ISA. The O32 ABI is ILP32 running on MIPS32. Like any ordinary 32 bit arch. The N64 ABI is LP64 running on MIPS64. Like any ordinary 64 bit arch. The N32 ABI is ILP32 running on MIPS64. It's pure MIPS64 not a compatibility mode or something like i386 code running on amd64. It has 64 bit registers and can do 64 bit load/store. --nextPart1379318.OyzAihz26h Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iF4EABEIAAYFAk0GKHUACgkQfoCS2CCgtis7XgD7BflX8cMiDIPqXBLShd4qUXPL 37AedRnuCOzOLX+zDUUBAIBkd887aldXQGJgK3U7rfHwRuWMYLWPX9wmagC7VRPB =j36Y -----END PGP SIGNATURE----- --nextPart1379318.OyzAihz26h--