[kaffe] CVS kaffe (guilhem): New STACK_STRUCT macro.

Kaffe CVS cvs-commits at kaffe.org
Sat Apr 24 13:07:01 PDT 2004


PatchSet 4691 
Date: 2004/04/24 19:48:09
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
New STACK_STRUCT macro.

        * config/sparc/openbsd2/md.h,
        kaffe/kaffevm/systems/unix-jthreads/signal.c:
        New macro STACK_STRUCT. On OpenBSD2 define it as
        "struct sigaltstack".

Members: 
	ChangeLog:1.2267->1.2268 
	config/sparc/openbsd2/md.h:1.5->1.6 
	kaffe/kaffevm/systems/unix-jthreads/signal.c:1.15->1.16 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2267 kaffe/ChangeLog:1.2268
--- kaffe/ChangeLog:1.2267	Sat Apr 24 16:57:21 2004
+++ kaffe/ChangeLog	Sat Apr 24 19:48:09 2004
@@ -1,5 +1,12 @@
 2004-04-24  Guilhem Lavaux <guilhem at kaffe.org>
 
+	* config/sparc/openbsd2/md.h,
+	kaffe/kaffevm/systems/unix-jthreads/signal.c:
+	New macro STACK_STRUCT. On OpenBSD2 define it as
+	"struct sigaltstack".
+
+2004-04-24  Guilhem Lavaux <guilhem at kaffe.org>
+
 	* config/i386/beos/md.h, config/i386/bsdi/md.h,
 	config/i386/dgux/md.h, config/i386/freebsd2/md.h,
 	config/i386/gnu/md.h, config/i386/linux/md.h,
Index: kaffe/config/sparc/openbsd2/md.h
diff -u kaffe/config/sparc/openbsd2/md.h:1.5 kaffe/config/sparc/openbsd2/md.h:1.6
--- kaffe/config/sparc/openbsd2/md.h:1.5	Sat Apr 24 16:57:33 2004
+++ kaffe/config/sparc/openbsd2/md.h	Sat Apr 24 19:48:10 2004
@@ -31,6 +31,8 @@
 #define SIGNAL_PC(scp) ((scp)->sc_pc)
 #define STACK_POINTER(scp) ((scp)->sc_sp)
 
+#define STACK_STRUCT struct sigaltstack
+
 #if defined(TRANSLATOR)
 #include "jit-md.h"
 #endif
Index: kaffe/kaffe/kaffevm/systems/unix-jthreads/signal.c
diff -u kaffe/kaffe/kaffevm/systems/unix-jthreads/signal.c:1.15 kaffe/kaffe/kaffevm/systems/unix-jthreads/signal.c:1.16
--- kaffe/kaffe/kaffevm/systems/unix-jthreads/signal.c:1.15	Sat Apr 24 16:57:36 2004
+++ kaffe/kaffe/kaffevm/systems/unix-jthreads/signal.c	Sat Apr 24 19:48:10 2004
@@ -31,6 +31,10 @@
 #define	EXCEPTIONFRAMEPTR	&frame
 #endif /* TRANSLATOR */
 
+#ifndef STACK_STRUCT
+#define STACK_STRUCT stack_t
+#endif
+
 static void nullException(SIGNAL_ARGS(sig, sc));
 static void floatingException(EXCEPTIONPROTO);
 
@@ -376,9 +380,8 @@
 void
 detectStackBoundaries(jthread_t jtid, int mainThreadStackSize)
 {
-        stack_t newstack;
-
 #if defined(STACK_POINTER) && defined(SA_ONSTACK) && defined(HAVE_SIGALTSTACK)
+        STACK_STRUCT newstack;
 
 	/*
 	 * Signals has to have their own stack so we can solve




More information about the kaffe mailing list