Index: src/backend/storage/lmgr/s_lock.c =================================================================== RCS file: /cvsroot/pgsql/src/backend/storage/lmgr/s_lock.c,v retrieving revision 1.32 diff -c -c -r1.32 s_lock.c *** src/backend/storage/lmgr/s_lock.c 30 Aug 2004 23:47:20 -0000 1.32 --- src/backend/storage/lmgr/s_lock.c 18 Dec 2004 20:19:35 -0000 *************** *** 136,147 **** #if defined(__m68k__) static void ! tas_dummy() /* really means: extern int tas(slock_t ! * **lock); */ { __asm__ __volatile__( ! "\ .global _tas \n\ _tas: \n\ movel sp@(0x4),a0 \n\ --- 136,161 ---- #if defined(__m68k__) + /* really means: extern int tas(slock_t* **lock); */ static void ! tas_dummy() { __asm__ __volatile__( ! #if defined(__NetBSD__) && defined(__ELF__) ! /* no underscore for label and % for registers */ ! "\ ! .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" ! #else ! "\ .global _tas \n\ _tas: \n\ movel sp@(0x4),a0 \n\ *************** *** 151,158 **** rts \n\ _success: \n\ moveq #0,d0 \n\ ! rts \n\ ! "); } #endif /* __m68k__ */ --- 165,173 ---- rts \n\ _success: \n\ moveq #0,d0 \n\ ! rts \n" ! #endif /* __NetBSD__ && __ELF__ */ ! ); } #endif /* __m68k__ */