Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 645169FB31E for ; Sat, 14 Apr 2007 15:55:05 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 92092-01 for ; Sat, 14 Apr 2007 15:55:02 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from box79162.elkhouse.de (piware.de [213.9.79.162]) by postgresql.org (Postfix) with ESMTP id CDD7D9FB31D for ; Sat, 14 Apr 2007 15:55:01 -0300 (ADT) Received: from localhost.localdomain (unknown [195.227.105.180]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Martin Pitt (workstation)", Issuer "piware CA" (verified OK)) by box79162.elkhouse.de (Postfix) with ESMTP id ACA955A23; Sat, 14 Apr 2007 20:54:53 +0200 (CEST) Received: by localhost.localdomain (Postfix, from userid 1000) id EFC61263D5; Sat, 14 Apr 2007 20:54:59 +0200 (CEST) Date: Sat, 14 Apr 2007 20:54:59 +0200 From: Martin Pitt To: pgsql-ports@postgresql.org Cc: Kazuhiro Inaoka Subject: m32r tas() implementation Message-ID: <20070414185459.GF5920@piware.de> Mail-Followup-To: pgsql-ports@postgresql.org, Kazuhiro Inaoka MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DNUSDXU7R7AVVM8C" Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/2 X-Sequence-Number: 2543 --DNUSDXU7R7AVVM8C Content-Type: multipart/mixed; boundary="DEueqSqTbz/jWVG1" Content-Disposition: inline --DEueqSqTbz/jWVG1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi PostgreSQL developers, Kazuhiro Inaoka recently sent me a tas() implementation for the m32r architecture [1]. It applies cleanly to 8.2.3 and seems otherwise harmless. Do you consider applying it upstream? Thank you, Martin [1] http://en.wikipedia.org/wiki/M32R --=20 Martin Pitt http://www.piware.de Ubuntu Developer http://www.ubuntu.com Debian Developer http://www.debian.org --DEueqSqTbz/jWVG1 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: inline; filename="13-m32r-tas.patch" Content-Transfer-Encoding: quoted-printable diff -Nur postgresql-8.2/build-tree/postgresql-8.2.3/src/include/storage/s_= lock.h postgresql-8.2.new/build-tree/postgresql-8.2.3/src/include/storage/s= _lock.h --- postgresql-8.2.3/src/include/storage/s_lock.h 2006-06-08 00:24:45.00000= 0000 +0200 +++ postgresql-8.2.3/src/include/storage/s_lock.h 2007-04-14 20:50:07.00000= 0000 +0200 @@ -566,6 +566,15 @@ #endif =20 =20 +#if defined(__m32r__) +#include +#define HAS_TEST_AND_SET + +typedef int slock_t; +#define TAS(lock) tas(lock) + +#endif + #endif /* __GNUC__ */ =20 =20 --DEueqSqTbz/jWVG1-- --DNUSDXU7R7AVVM8C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGISODDecnbV4Fd/IRAisqAKDyLZtacMExVsVDXwIHs2tFHSy0yQCgnx5r UbBROIHrpdSjSH6p13D0jE4= =MEiQ -----END PGP SIGNATURE----- --DNUSDXU7R7AVVM8C--