head 1.7; access; symbols pkgsrc-2026Q1:1.7.0.134 pkgsrc-2026Q1-base:1.7 pkgsrc-2025Q4:1.7.0.132 pkgsrc-2025Q4-base:1.7 pkgsrc-2025Q3:1.7.0.130 pkgsrc-2025Q3-base:1.7 pkgsrc-2025Q2:1.7.0.128 pkgsrc-2025Q2-base:1.7 pkgsrc-2025Q1:1.7.0.126 pkgsrc-2025Q1-base:1.7 pkgsrc-2024Q4:1.7.0.124 pkgsrc-2024Q4-base:1.7 pkgsrc-2024Q3:1.7.0.122 pkgsrc-2024Q3-base:1.7 pkgsrc-2024Q2:1.7.0.120 pkgsrc-2024Q2-base:1.7 pkgsrc-2024Q1:1.7.0.118 pkgsrc-2024Q1-base:1.7 pkgsrc-2023Q4:1.7.0.116 pkgsrc-2023Q4-base:1.7 pkgsrc-2023Q3:1.7.0.114 pkgsrc-2023Q3-base:1.7 pkgsrc-2023Q2:1.7.0.112 pkgsrc-2023Q2-base:1.7 pkgsrc-2023Q1:1.7.0.110 pkgsrc-2023Q1-base:1.7 pkgsrc-2022Q4:1.7.0.108 pkgsrc-2022Q4-base:1.7 pkgsrc-2022Q3:1.7.0.106 pkgsrc-2022Q3-base:1.7 pkgsrc-2022Q2:1.7.0.104 pkgsrc-2022Q2-base:1.7 pkgsrc-2022Q1:1.7.0.102 pkgsrc-2022Q1-base:1.7 pkgsrc-2021Q4:1.7.0.100 pkgsrc-2021Q4-base:1.7 pkgsrc-2021Q3:1.7.0.98 pkgsrc-2021Q3-base:1.7 pkgsrc-2021Q2:1.7.0.96 pkgsrc-2021Q2-base:1.7 pkgsrc-2021Q1:1.7.0.94 pkgsrc-2021Q1-base:1.7 pkgsrc-2020Q4:1.7.0.92 pkgsrc-2020Q4-base:1.7 pkgsrc-2020Q3:1.7.0.90 pkgsrc-2020Q3-base:1.7 pkgsrc-2020Q2:1.7.0.86 pkgsrc-2020Q2-base:1.7 pkgsrc-2020Q1:1.7.0.66 pkgsrc-2020Q1-base:1.7 pkgsrc-2019Q4:1.7.0.88 pkgsrc-2019Q4-base:1.7 pkgsrc-2019Q3:1.7.0.84 pkgsrc-2019Q3-base:1.7 pkgsrc-2019Q2:1.7.0.82 pkgsrc-2019Q2-base:1.7 pkgsrc-2019Q1:1.7.0.80 pkgsrc-2019Q1-base:1.7 pkgsrc-2018Q4:1.7.0.78 pkgsrc-2018Q4-base:1.7 pkgsrc-2018Q3:1.7.0.76 pkgsrc-2018Q3-base:1.7 pkgsrc-2018Q2:1.7.0.74 pkgsrc-2018Q2-base:1.7 pkgsrc-2018Q1:1.7.0.72 pkgsrc-2018Q1-base:1.7 pkgsrc-2017Q4:1.7.0.70 pkgsrc-2017Q4-base:1.7 pkgsrc-2017Q3:1.7.0.68 pkgsrc-2017Q3-base:1.7 pkgsrc-2017Q2:1.7.0.64 pkgsrc-2017Q2-base:1.7 pkgsrc-2017Q1:1.7.0.62 pkgsrc-2017Q1-base:1.7 pkgsrc-2016Q4:1.7.0.60 pkgsrc-2016Q4-base:1.7 pkgsrc-2016Q3:1.7.0.58 pkgsrc-2016Q3-base:1.7 pkgsrc-2016Q2:1.7.0.56 pkgsrc-2016Q2-base:1.7 pkgsrc-2016Q1:1.7.0.54 pkgsrc-2016Q1-base:1.7 pkgsrc-2015Q4:1.7.0.52 pkgsrc-2015Q4-base:1.7 pkgsrc-2015Q3:1.7.0.50 pkgsrc-2015Q3-base:1.7 pkgsrc-2015Q2:1.7.0.48 pkgsrc-2015Q2-base:1.7 pkgsrc-2015Q1:1.7.0.46 pkgsrc-2015Q1-base:1.7 pkgsrc-2014Q4:1.7.0.44 pkgsrc-2014Q4-base:1.7 pkgsrc-2014Q3:1.7.0.42 pkgsrc-2014Q3-base:1.7 pkgsrc-2014Q2:1.7.0.40 pkgsrc-2014Q2-base:1.7 pkgsrc-2014Q1:1.7.0.38 pkgsrc-2014Q1-base:1.7 pkgsrc-2013Q4:1.7.0.36 pkgsrc-2013Q4-base:1.7 pkgsrc-2013Q3:1.7.0.34 pkgsrc-2013Q3-base:1.7 pkgsrc-2013Q2:1.7.0.32 pkgsrc-2013Q2-base:1.7 pkgsrc-2013Q1:1.7.0.30 pkgsrc-2013Q1-base:1.7 pkgsrc-2012Q4:1.7.0.28 pkgsrc-2012Q4-base:1.7 pkgsrc-2012Q3:1.7.0.26 pkgsrc-2012Q3-base:1.7 pkgsrc-2012Q2:1.7.0.24 pkgsrc-2012Q2-base:1.7 pkgsrc-2012Q1:1.7.0.22 pkgsrc-2012Q1-base:1.7 pkgsrc-2011Q4:1.7.0.20 pkgsrc-2011Q4-base:1.7 pkgsrc-2011Q3:1.7.0.18 pkgsrc-2011Q3-base:1.7 pkgsrc-2011Q2:1.7.0.16 pkgsrc-2011Q2-base:1.7 pkgsrc-2011Q1:1.7.0.14 pkgsrc-2011Q1-base:1.7 pkgsrc-2010Q4:1.7.0.12 pkgsrc-2010Q4-base:1.7 pkgsrc-2010Q3:1.7.0.10 pkgsrc-2010Q3-base:1.7 pkgsrc-2010Q2:1.7.0.8 pkgsrc-2010Q2-base:1.7 pkgsrc-2010Q1:1.7.0.6 pkgsrc-2010Q1-base:1.7 pkgsrc-2009Q4:1.7.0.4 pkgsrc-2009Q4-base:1.7 pkgsrc-2009Q3:1.7.0.2 pkgsrc-2009Q3-base:1.7 pkgsrc-2008Q4:1.6.0.24 pkgsrc-2008Q4-base:1.6 pkgsrc-2008Q3:1.6.0.22 pkgsrc-2008Q3-base:1.6 cube-native-xorg:1.6.0.20 cube-native-xorg-base:1.6 pkgsrc-2008Q2:1.6.0.18 pkgsrc-2008Q2-base:1.6 pkgsrc-2008Q1:1.6.0.16 pkgsrc-2008Q1-base:1.6 pkgsrc-2007Q4:1.6.0.14 pkgsrc-2007Q4-base:1.6 pkgsrc-2007Q3:1.6.0.12 pkgsrc-2007Q3-base:1.6 pkgsrc-2007Q2:1.6.0.10 pkgsrc-2007Q2-base:1.6 pkgsrc-2007Q1:1.6.0.8 pkgsrc-2007Q1-base:1.6 pkgsrc-2006Q4:1.6.0.6 pkgsrc-2006Q4-base:1.6 pkgsrc-2006Q3:1.6.0.4 pkgsrc-2006Q3-base:1.6 pkgsrc-2006Q2:1.6.0.2 pkgsrc-2006Q2-base:1.6 pkgsrc-2006Q1:1.5.0.4 pkgsrc-2006Q1-base:1.5 pkgsrc-2005Q4:1.5.0.2 pkgsrc-2005Q4-base:1.5 pkgsrc-2005Q3:1.4.0.16 pkgsrc-2005Q3-base:1.4 pkgsrc-2005Q2:1.4.0.14 pkgsrc-2005Q2-base:1.4 pkgsrc-2005Q1:1.4.0.12 pkgsrc-2005Q1-base:1.4 pkgsrc-2004Q4:1.4.0.10 pkgsrc-2004Q4-base:1.4 pkgsrc-2004Q3:1.4.0.8 pkgsrc-2004Q3-base:1.4 pkgsrc-2004Q2:1.4.0.6 pkgsrc-2004Q2-base:1.4 pkgsrc-2004Q1:1.4.0.4 pkgsrc-2004Q1-base:1.4 pkgsrc-2003Q4:1.4.0.2 pkgsrc-2003Q4-base:1.4 buildlink2-base:1.2 netbsd-1-4-PATCH001:1.1 netbsd-1-4-RELEASE:1.1; locks; strict; comment @# @; 1.7 date 2009.07.10.19.58.12; author abs; state Exp; branches; next 1.6; 1.6 date 2006.05.10.16.46.21; author tonio; state dead; branches; next 1.5; 1.5 date 2005.11.04.21.21.02; author tonio; state Exp; branches; next 1.4; 1.4 date 2003.09.22.03.04.18; author jschauma; state dead; branches; next 1.3; 1.3 date 2003.09.16.20.15.35; author jmmv; state Exp; branches; next 1.2; 1.2 date 99.08.07.10.23.54; author drochner; state dead; branches; next 1.1; 1.1 date 98.10.14.21.34.44; author frueauf; state Exp; branches; next ; desc @@ 1.7 log @Set user-destdir, add (unfortunately) partial patch for NetBSD/m68k @ text @$NetBSD$ (unfortunately) incomplete patch to update NetBSD/m68k to be closer to working --- config/m68k/netbsd1/md.h.orig 2009-02-05 20:12:32.000000000 +0000 +++ config/m68k/netbsd1/md.h @@@@ -17,34 +17,65 @@@@ #include "m68k/common.h" #include "m68k/threads.h" +#if defined(HAVE_SIGNAL_H) +#include +#endif +#if defined(HAVE_SYS_RESOURCE_H) +#include +#endif +#if defined(HAVE_SYS_SIGNAL_H) +#include +#endif +#if defined(HAVE_UNISTD_H) +#include +#endif + /* * Alignment in structure is 8 bytes packed */ #define ALIGNMENT_OF_SIZE(S) ((S) < 8 ? (S) : 8) /* - * Stack offset. - * This is the offset into the setjmp buffer where the stack pointer is - * stored. + * Redefine stack pointer offset. */ -#define SP_OFFSET 2 +#undef SP_OFFSET +#define SP_OFFSET 2 -/**/ -/* Extra exception handling information. */ -/**/ -#include +#if defined(HAVE_SYS_UCONTEXT_H) +#include -#define SIGNAL_ARGS(sig, sc) int sig, int code, struct sigcontext *sc +/* older netbsd's could have this macro missing, so we provide it */ +#ifndef _UC_MACHINE_SP +#define _UC_MACHINE_SP(uc) ((uc)->uc_mcontext.__gregs[_REG_UESP]) +#endif +#ifndef _UC_MACHINE_PC +#define _UC_MACHINE_PC(uc) ((uc)->uc_mcontext.__gregs[_REG_EIP]) +#endif + +#define SIGCONTEXT ucontext_t + +#define SIGNAL_ARGS(sig, sc) int sig, siginfo_t *__si, void *sc +#define SIGNAL_CONTEXT_POINTER(scp) SIGCONTEXT *scp +#define SIGNAL_PC(scp) _UC_MACHINE_PC(((SIGCONTEXT *)(scp))) +#define STACK_POINTER(scp) _UC_MACHINE_SP(((SIGCONTEXT *)(scp))) +#define GET_SIGNAL_CONTEXT_POINTER(sc) (sc) + +#else + +#define SIGNAL_ARGS(sig, sc) int sig, int __code, struct sigcontext *sc #define SIGNAL_CONTEXT_POINTER(scp) struct sigcontext *scp -#define GET_SIGNAL_CONTEXT_POINTER(scp) (scp) -#define SIGNAL_PC(scp) ((uintp)(scp)->sc_pc) +#define GET_SIGNAL_CONTEXT_POINTER(sc) (sc) +#define SIGNAL_PC(scp) (scp)->sc_pc +#define STACK_POINTER(scp) (scp)->sc_sp -#include "kaffe-unix-stack.h" +#endif #if defined(TRANSLATOR) #include "jit-md.h" #endif +#include "kaffe-unix-stack.h" + /* * sysdepCallMethod supports: * @ 1.6 log @Update lang/kaffe{-x11,-esound} to 1.1.7 What's New In Kaffe 1.1.7 ------------------------------------------------------ * Many cleanups, warning fixes and bug fixes. * Removed support for class library profiles, since --with-glibj-zip offers a more convenient replacement. * Updated to boehm-gc 6.6 * Updated to gjdoc 0.7.7 * Merged in fastjar. * Merged in zlib. There is a new configure option, --with-system-zlib to allow the use of the system zlib, instead of the merged in one. * Merged in GNU Classpath completely. Updated to version 0.90, with additional fixes. * Merged in port to DROPS. * Merged in port to Blackfin CPU. * Support for DragonFly BSD. * Ported to ia64-freebsd and alpha-freebsd. * Ported to powerpc-openbsd. * Improved support for Cygwin and sparc64-openbsd. * Improved stack handling for pthreads on openbsd. * Added simple direct threading interpreter implementation. The patches have been removes, since they were either included upstram or are no more necessary @ text @d1 1 a1 1 $NetBSD: patch-ag,v 1.5 2005/11/04 21:21:02 tonio Exp $ d3 75 a77 9 --- kaffe/kaffevm/systems/unix-pthreads/thread-impl.c.orig 2005-08-20 14:31:02.000000000 +0200 +++ kaffe/kaffevm/systems/unix-pthreads/thread-impl.c @@@@ -415,7 +415,7 @@@@ tInitSignalHandlers (void) saResume.sa_flags = 0; /* Note that we do not want restart here. */ saResume.sa_handler = resume_signal_handler; saResume.sa_mask = saSuspend.sa_mask; -#ifndef KAFFE_BOEHM_GC +#if !defined(KAFFE_BOEHM_GC) && !defined(KAFFE_BUGGY_NETBSD_SIGWAIT) sigaction( sigResume, &saResume, NULL); d80 5 a84 38 @@@@ -1275,7 +1275,12 @@@@ void KaffePThread_WaitForResume(int rele /* freeze until we get a subsequent sigResume */ while( cur->suspendState == SS_SUSPENDED ) - sigwait( &suspendSet, &s); + { + sigwait( &suspendSet, &s); + /* Post something even if it is not the right thread. */ + if (cur->suspendState == SS_SUSPENDED) + repsem_post(&critSem); + } DBG( JTHREADDETAIL, dprintf("sigwait return: %p\n", cur)); @@@@ -1497,13 +1502,17 @@@@ jthread_unsuspendall (void) if ((t->blockState & (BS_SYSCALL|BS_CV|BS_CV_TO|BS_MUTEX)) == 0) { DBG (JTHREADDETAIL, dprintf(" sending sigResume\n")); - status = pthread_kill( t->tid, sigResume); - if ( status ) + do { - DBG( JTHREAD, dprintf("error sending RESUME signal to %p: %d\n", t, status)); - } - /* ack wait workaround, see jthread_suspendall remarks */ - repsem_wait( &critSem); + status = pthread_kill( t->tid, sigResume); + if ( status ) + { + DBG( JTHREAD, dprintf("error sending RESUME signal to %p: %d\n", t, status)); + } + /* ack wait workaround, see jthread_suspendall remarks */ + repsem_wait( &critSem); + } + while (t->suspendState == SS_PENDING_RESUME); } else { @ 1.5 log @Integrate patches from kaffe'cvs to fix thread signal handling on netbsd Thanks guilhem_at_kaffe.org for those patches (Now kaffe passes 100% of the regression tests under netbsd -current (at least i386)) bump PKGREVISION @ text @d1 1 a1 1 $NetBSD$ @ 1.4 log @Update lang/kaffe to 1.1.0, using patches provided in PR pkg/22155 by M.Negovanovic. While this version is actually a ``development'' version, it has been reported to be much more usable than the stable 1.0.7 version. Changes to 1.0.7 are far too numerous to list here, see http://www.kaffe.org and/or the ChangeLog in the tarball. @ text @d1 1 a1 1 $NetBSD: patch-ag,v 1.3 2003/09/16 20:15:35 jmmv Exp $ d3 10 a12 3 --- config/i386/trampolines.c.orig 2003-08-11 13:01:10.966139000 +0100 +++ config/i386/trampolines.c 2003-08-11 13:13:31.960345000 +0100 @@@@ -33,10 +33,10 @@@@ d14 1 a14 12 asm( START_ASM_FUNC() C_FUNC_NAME(i386_do_fixup_trampoline) "\n" -C_FUNC_NAME(i386_do_fixup_trampoline) ": \n - call " C_FUNC_NAME(soft_fixup_trampoline) " \n - popl %ecx \n - jmp *%eax" +C_FUNC_NAME(i386_do_fixup_trampoline) ": \n" +" call " C_FUNC_NAME(soft_fixup_trampoline) " \n" +" popl %ecx \n" +" jmp *%eax" END_ASM_FUNC() ); d16 11 a26 27 @@@@ -48,17 +48,16 @@@@ */ asm( START_ASM_FUNC() C_FUNC_NAME(__kaffe_i386_gcj_fixup) "\n" -C_FUNC_NAME(__kaffe_i386_gcj_fixup) ": - mov (%esp), %eax # get return address - add -4(%eax), %eax # add jump relative offset from previous instr. - # this points at at jmp *$off(%ebx) instr. - mov 2(%eax), %eax # extract 'off' - add %ebx, %eax # compute $off(%ebx) - pushl %eax # pass as first argument - call " C_FUNC_NAME(gcj_fixup_trampoline) " # returns target - addl $4, %esp # remove argument - jmp *%eax # jump to target -" +C_FUNC_NAME(__kaffe_i386_gcj_fixup) ":" +" mov (%esp), %eax # get return address\n" +" add -4(%eax), %eax # add jump relative offset from previous instr.\n" +" # this points at at jmp *$off(%ebx) instr.\n" +" mov 2(%eax), %eax # extract 'off'\n" +" add %ebx, %eax # compute $off(%ebx)\n" +" pushl %eax # pass as first argument\n" +" call " C_FUNC_NAME(gcj_fixup_trampoline) " # returns target\n" +" addl $4, %esp # remove argument\n" +" jmp *%eax # jump to target\n" END_ASM_FUNC() ); d28 24 @ 1.3 log @Fix build with gcc3. From Jonathan Perkin in PR pkg/22437. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @update to 1.0b4 @ text @d1 1 a1 1 $NetBSD: patch-ag,v 1.1 1998/10/14 21:34:44 frueauf Exp $ d3 45 a47 11 --- libraries/clib/net/Makefile.in-orig Fri Sep 11 17:25:27 1998 +++ libraries/clib/net/Makefile.in Wed Oct 14 22:51:26 1998 @@@@ -26,7 +26,7 @@@@ DLLTOOL= @@DLLTOOL@@ DEPTOOL= @@DEPTOOL@@ PIC= @@PIC@@ -LDFLAGS= @@LIBSHARE@@ @@LDFLAGS@@ +LDFLAGS= @@LIBSHARE@@ LIBS= @@LIBS@@ LDTAIL= @@LDTAIL@@ @@NET_LIBRARIES@@ KVER= @@KVER@@ @ 1.1 log @Update kaffe to 1.0.b2. @ text @d1 1 a1 1 $NetBSD$ @