agora inbox for postgres@postgres.berkeley.edu
help / color / mirror / Atom feedtas.s
2+ messages / 2 participants
[nested] [flat]
* tas.s
@ 1994-12-06 07:51 Michael Graff <explorer@vorpal.com>
1994-12-08 12:06 ` Re: tas.s Kai Petzke <wpp@marie.physik.tu-berlin.de>
0 siblings, 1 reply; 2+ messages in thread
From: Michael Graff @ 1994-12-06 07:51 UTC (permalink / raw)
To: legacy
I'm working on a quick port to NetBSD/i386-current and need to
have an example i386 tas.s. Could someone mail this to me if
possible, or tell me where to find it (other than downloading lots
of megs over a 14.4k line. ;)
Thanks,
--Michael
==============================================================================
To add/remove yourself to/from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU".
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
==============================================================================
URL: http://s2k-ftp.CS.Berkeley.EDU:8000/postgres/
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: tas.s
1994-12-06 07:51 tas.s Michael Graff <explorer@vorpal.com>
@ 1994-12-08 12:06 ` Kai Petzke <wpp@marie.physik.tu-berlin.de>
0 siblings, 0 replies; 2+ messages in thread
From: Kai Petzke @ 1994-12-08 12:06 UTC (permalink / raw)
To: Michael Graff <explorer@vorpal.com>; +Cc: legacy
>
>
> I'm working on a quick port to NetBSD/i386-current and need to
> have an example i386 tas.s.
There is no such thing as a quick port of Postgres.
> Could someone mail this to me if
> possible, or tell me where to find it (other than downloading lots
> of megs over a 14.4k line. ;)
The following works fine under Linux. Insert into the file:
~postgres/src/backend/storage/ipc
slock_t should be defined as char.
Kai
------------- snip here ---------------
#if defined(__i386__) && defined(__GNUC__)
static inline tas(lock)
slock_t *lock;
{
slock_t res;
__asm__("xchgb %0,%1":"=q" (res),"=m" (*lock):"0" (0x1));
return(res);
}
S_LOCK(lock)
slock_t *lock;
{
while (tas(lock))
;
}
S_UNLOCK(lock)
slock_t *lock;
{
*lock = 0;
}
S_INIT_LOCK(lock)
slock_t *lock;
{
S_UNLOCK(lock);
}
#endif /* __i386__ && __GNUC__ */
#endif /* HAS_TEST_AND_SET */
==============================================================================
To add/remove yourself to/from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU".
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
==============================================================================
URL: http://s2k-ftp.CS.Berkeley.EDU:8000/postgres/
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~1994-12-08 12:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1994-12-06 07:51 tas.s Michael Graff <explorer@vorpal.com>
1994-12-08 12:06 ` Kai Petzke <wpp@marie.physik.tu-berlin.de>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox