pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martin Pitt <martin@piware.de>
To: pgsql-ports@postgresql.org
Cc: Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
Subject: m32r tas() implementation
Date: Sat, 14 Apr 2007 20:54:59 +0200
Message-ID: <20070414185459.GF5920@piware.de> (raw)

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

-- 
Martin Pitt        http://www.piware.de
Ubuntu Developer   http://www.ubuntu.com
Debian Developer   http://www.debian.org

Attachments:

13-m32r-tas.patch (text/x-diff, 525B) download 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.000000000 +0200 +++ postgresql-8.2.3/src/include/storage/s_lock.h 2007-04-14 20:50:07.000000000 +0200 @@ -566,6 +566,15 @@ #endif +#if defined(__m32r__) +#include <sys/tas.h> +#define HAS_TEST_AND_SET + +typedef int slock_t; +#define TAS(lock) tas(lock) + +#endif + #endif /* __GNUC__ */
signature.asc (application/pgp-signature, 188B) download

view thread (7+ messages)  latest in thread

Message-ID: <20070414185459.GF5920@piware.de>
Permalink:  ../20070414185459.GF5920@piware.de/
Also on:    postgresql.org/message-id/20070414185459.GF5920@piware.de

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-ports@postgresql.org
  Cc: martin@piware.de, inaoka.kazuhiro@renesas.com
  Subject: Re: m32r tas() implementation
  In-Reply-To: <20070414185459.GF5920@piware.de>
  References: <20070414185459.GF5920@piware.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox