diff options
author | Bruce Momjian <bruce@momjian.us> | 1998-12-26 18:15:53 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1998-12-26 18:15:53 +0000 |
commit | 58e539e574dc96bd953c95758428452414ed3c06 (patch) | |
tree | ce48c2ec654f8b5e84eb337f909fedaef303148a /src/backend/storage/buffer/s_lock.c | |
parent | 2be1eccec775620dc3a6f8d1123fd15303b0d096 (diff) | |
download | postgresql-58e539e574dc96bd953c95758428452414ed3c06.tar.gz postgresql-58e539e574dc96bd953c95758428452414ed3c06.zip |
Long awaited port for NetBSD/m68k was finally done by Mr. Mutsuki
Nakajima. Since he is not subscribing the mailing list, I'm posting
his patches by his request. According to him, he has successfully
compiled and passed the regression test on Mac SE/30 running
NetBSD/m68k. Also, another person has reported that with the patches
PostgreSQL is working on NetBSD/sun3 too.
--
Tatsuo Ishii
Diffstat (limited to 'src/backend/storage/buffer/s_lock.c')
-rw-r--r-- | src/backend/storage/buffer/s_lock.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/backend/storage/buffer/s_lock.c b/src/backend/storage/buffer/s_lock.c index 77f3dbc5ad0..9a6991b222f 100644 --- a/src/backend/storage/buffer/s_lock.c +++ b/src/backend/storage/buffer/s_lock.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/s_lock.c,v 1.14 1998/12/18 17:25:39 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/s_lock.c,v 1.15 1998/12/26 18:15:53 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -99,6 +99,25 @@ s_lock(volatile slock_t *lock, const char *file, const int line) */ +#if defined(__m68k__) +static void +tas_dummy() /* really means: extern int tas(slock_t **lock); */ +{ + __asm__(" \n\ +.global _tas \n\ +_tas: \n\ + movel sp@(0x4),a0 \n\ + tas a0@ \n\ + beq _success \n\ + moveq #-128,d0 \n\ + rts \n\ +_success: \n\ + moveq #0,d0 \n\ + rts \n\ + "); +} + +#endif /* __m68k__ */ #if defined(PPC) /* Note: need a nice gcc constrained asm version so it can be inlined */ |