Обсуждение: NetBSD/m68k port
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
t-ishii@sra.co.jp
---------------------------- cut here ----------------------------
diff -crP postgresql-v6.4.org/src/include/utils/memutils.h postgresql-v6.4/src/include/utils/memutils.h
*** postgresql-v6.4.org/src/include/utils/memutils.h Mon Sep 7 14:35:48 1998
--- postgresql-v6.4/src/include/utils/memutils.h Sat Dec 26 05:51:30 1998
***************
*** 58,70 **** #define SHORTALIGN(LEN)\ (((long)(LEN) + (sizeof (short) - 1)) & ~(sizeof (short) - 1)) #define
INTALIGN(LEN)\ (((long)(LEN) + (sizeof (int) - 1)) & ~(sizeof (int) -1)) /* * LONGALIGN(LEN) -
length(or address) aligned for longs */
! #if defined(sun) && ! defined(sparc) #define LONGALIGN(LEN) SHORTALIGN(LEN) #elif defined (__alpha)
--- 58,74 ---- #define SHORTALIGN(LEN)\ (((long)(LEN) + (sizeof (short) - 1)) & ~(sizeof (short) - 1))
+ #if defined(m68k)
+ #define INTALIGN(LEN) SHORTALIGN(LEN)
+ #else #define INTALIGN(LEN)\ (((long)(LEN) + (sizeof (int) - 1)) & ~(sizeof (int) -1))
+ #endif /* * LONGALIGN(LEN) - length (or address) aligned for longs */
! #if (defined(sun) && ! defined(sparc)) || defined(m68k) #define LONGALIGN(LEN) SHORTALIGN(LEN) #elif defined
(__alpha)
***************
*** 81,87 **** (((long)(LEN) + (sizeof (long) - 1)) & ~(sizeof (long) -1)) #endif
! #if ! defined(sco) #define DOUBLEALIGN(LEN)\ (((long)(LEN) + (sizeof (double) - 1)) & ~(sizeof (double) -1))
--- 85,94 ---- (((long)(LEN) + (sizeof (long) - 1)) & ~(sizeof (long) -1)) #endif
! #if defined(m68k)
! #define DOUBLEALIGN(LEN) SHORTALIGN(LEN)
! #define MAXALIGN(LEN) SHORTALIGN(LEN)
! #elif ! defined(sco) #define DOUBLEALIGN(LEN)\ (((long)(LEN) + (sizeof (double) - 1)) & ~(sizeof (double)
-1))
diff -crP postgresql-v6.4.org/src/backend/storage/buffer/s_lock.c postgresql-v6.4/src/backend/storage/buffer/s_lock.c
*** postgresql-v6.4.org/src/backend/storage/buffer/s_lock.c Sat Sep 19 02:18:39 1998
--- postgresql-v6.4/src/backend/storage/buffer/s_lock.c Sat Dec 26 06:26:24 1998
***************
*** 117,122 ****
--- 117,141 ---- #endif /* PPC */
+ #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__ */ #else /* defined(__GNUC__) */
Patch applied. > 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 > t-ishii@sra.co.jp -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania19026
This sounds like an item worthy of a newsflash on the web site. I'll add one if you like. What's the approved way of getting the patch/release in question? How do we describe present status? Beta? Bruce Momjian <maillist@candle.pha.pa.us> writes: > Patch applied. > > > 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 > > t-ishii@sra.co.jp > > > -- > Bruce Momjian | http://www.op.net/~candle > maillist@candle.pha.pa.us | (610) 853-3000 > + If your life is a hard drive, | 830 Blythe Avenue > + Christ can be your backup. | Drexel Hill, Pennsylvania 19026 --- Hal / webmaster@postgresql.org
> This sounds like an item worthy of a newsflash on the web site. I'll > add one if you like. What's the approved way of getting the > patch/release in question? How do we describe present status? Beta? > > Bruce Momjian <maillist@candle.pha.pa.us> writes: > > > Patch applied. > > > > > 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. We would have to have it packaged, and put in the patches directory on the ftp site. Then we can just tell them to look in the patches directory for it. -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania19026