[kaffe] CVS kaffe (guilhem): SIGNAL_ARGS implementation for m68k arch

Kaffe CVS cvs-commits at kaffe.org
Wed Aug 27 02:37:02 PDT 2003


PatchSet 3986 
Date: 2003/08/27 09:35:05
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
SIGNAL_ARGS implementation for m68k arch

Members: 
	ChangeLog:1.1583->1.1584 
	config/m68k/a-ux/jit-md.h:1.1->1.2 
	config/m68k/a-ux/md.h:1.3->1.4 
	config/m68k/linux/jit-md.h:1.2->1.3 
	config/m68k/linux/md.h:1.4->1.5 
	config/m68k/netbsd1/jit-md.h:1.5->1.6 
	config/m68k/netbsd1/md.h:1.4->1.5 
	config/m68k/openbsd2/jit-md.h:1.1->1.2 
	config/m68k/openbsd2/md.h:1.2->1.3 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1583 kaffe/ChangeLog:1.1584
--- kaffe/ChangeLog:1.1583	Wed Aug 27 09:22:33 2003
+++ kaffe/ChangeLog	Wed Aug 27 09:35:05 2003
@@ -1,5 +1,17 @@
 2003-08-28  Guilhem Lavaux <guilhem at kaffe.org>
 
+	* config/m68k/a-ux/jit-md.h, config/m68k/netbsd1/jit-md.h,
+	config/m68k/linux/jit-md.h, config/m68k/openbsd2/jit-md.h,
+	config/m68k/a-ux/md.h, config/m68k/netbsd1/md.h,
+	config/m68k/linux/md.h, config/m68k/openbsd2/md.h:
+	Defined SIGNAL_ARGS using informations from EXCEPTIONPROTO.
+	Redefined EXCEPTIONPROTO as SIGNAL_ARGS(sig, ctx)
+	Moved some code from jit-md.h to md.h and defined
+	SIGNAL_CONTEXT_POINTER, GET_SIGNAL_CONTEXT_POINTER, SIGNAL_PC
+	wherever possible.
+
+2003-08-28  Guilhem Lavaux <guilhem at kaffe.org>
+
 	* config/sparc/bsdi3/md.h, config/sparc/linux/md.h,
 	config/sparc/netbsd1/md.h, config/sparc/nextstep3/md.h,
 	config/sparc/openbsd2/md.h, config/sparc/solaris2/md.h,
Index: kaffe/config/m68k/a-ux/jit-md.h
diff -u kaffe/config/m68k/a-ux/jit-md.h:1.1 kaffe/config/m68k/a-ux/jit-md.h:1.2
--- kaffe/config/m68k/a-ux/jit-md.h:1.1	Tue Mar 31 19:10:53 1998
+++ kaffe/config/m68k/a-ux/jit-md.h	Wed Aug 27 09:35:07 2003
@@ -28,8 +28,7 @@
 /**/
 #include <signal.h>
 
-#define	EXCEPTIONPROTO							\
-	int sig, int code, struct sigcontext *ctx
+#define	EXCEPTIONPROTO SIGNAL_ARGS(sig, ctx)
 
 /* Get the first exception frame from a signal handler */
 #define	EXCEPTIONFRAME(f, c)						\
Index: kaffe/config/m68k/a-ux/md.h
diff -u kaffe/config/m68k/a-ux/md.h:1.3 kaffe/config/m68k/a-ux/md.h:1.4
--- kaffe/config/m68k/a-ux/md.h:1.3	Wed Apr  2 08:03:28 2003
+++ kaffe/config/m68k/a-ux/md.h	Wed Aug 27 09:35:07 2003
@@ -22,6 +22,16 @@
 #undef	SP_OFFSET
 #define	SP_OFFSET		2
 
+/**/
+/* Extra exception handling information. */
+/**/
+#include <signal.h>
+
+#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)
+
 #if defined(TRANSLATOR)
 #include "jit-md.h"
 extern void init_md(void);
Index: kaffe/config/m68k/linux/jit-md.h
diff -u kaffe/config/m68k/linux/jit-md.h:1.2 kaffe/config/m68k/linux/jit-md.h:1.3
--- kaffe/config/m68k/linux/jit-md.h:1.2	Sun Mar 28 22:24:05 1999
+++ kaffe/config/m68k/linux/jit-md.h	Wed Aug 27 09:35:07 2003
@@ -30,8 +30,7 @@
 /**/
 #include <signal.h>
 
-#define	EXCEPTIONPROTO							\
-	int sig, int code, struct sigcontext *ctx
+#define	EXCEPTIONPROTO SIGNAL_ARGS(sig, ctx)
 
 /* Get the first exception frame from a signal handler */
 #define	EXCEPTIONFRAME(f, c)						\
Index: kaffe/config/m68k/linux/md.h
diff -u kaffe/config/m68k/linux/md.h:1.4 kaffe/config/m68k/linux/md.h:1.5
--- kaffe/config/m68k/linux/md.h:1.4	Thu Mar 25 18:06:26 1999
+++ kaffe/config/m68k/linux/md.h	Wed Aug 27 09:35:07 2003
@@ -21,6 +21,16 @@
 #undef  SP_OFFSET
 #define SP_OFFSET	14
 
+/**/
+/* Extra exception handling information. */
+/**/
+#include <signal.h>
+
+#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)
+
 #if defined(TRANSLATOR)
 #include "jit-md.h"
 #endif
Index: kaffe/config/m68k/netbsd1/jit-md.h
diff -u kaffe/config/m68k/netbsd1/jit-md.h:1.5 kaffe/config/m68k/netbsd1/jit-md.h:1.6
--- kaffe/config/m68k/netbsd1/jit-md.h:1.5	Sat Oct 16 21:59:04 1999
+++ kaffe/config/m68k/netbsd1/jit-md.h	Wed Aug 27 09:35:08 2003
@@ -32,8 +32,7 @@
 /**/
 #include <signal.h>
 
-#define	EXCEPTIONPROTO							\
-	int sig, int code, struct sigcontext *ctx
+#define	EXCEPTIONPROTO SIGNAL_ARGS(sig, ctx)
 
 /* Get the first exception frame from a signal handler */
 #define	EXCEPTIONFRAME(f, c)						\
Index: kaffe/config/m68k/netbsd1/md.h
diff -u kaffe/config/m68k/netbsd1/md.h:1.4 kaffe/config/m68k/netbsd1/md.h:1.5
--- kaffe/config/m68k/netbsd1/md.h:1.4	Thu Aug 20 00:50:16 1998
+++ kaffe/config/m68k/netbsd1/md.h	Wed Aug 27 09:35:08 2003
@@ -23,6 +23,16 @@
 #undef  SP_OFFSET
 #define SP_OFFSET       2
 
+/**/
+/* Extra exception handling information. */
+/**/
+#include <signal.h>
+
+#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)
+
 #if defined(TRANSLATOR)
 #include "jit-md.h"
 #endif
Index: kaffe/config/m68k/openbsd2/jit-md.h
diff -u kaffe/config/m68k/openbsd2/jit-md.h:1.1 kaffe/config/m68k/openbsd2/jit-md.h:1.2
--- kaffe/config/m68k/openbsd2/jit-md.h:1.1	Tue Mar 31 19:10:53 1998
+++ kaffe/config/m68k/openbsd2/jit-md.h	Wed Aug 27 09:35:08 2003
@@ -29,8 +29,7 @@
 /**/
 #include <signal.h>
 
-#define	EXCEPTIONPROTO							\
-	int sig, siginfo_t* code, struct sigcontext *ctx
+#define	EXCEPTIONPROTO SIGNAL_ARGS(sig, ctx)
 
 /* Get the first exception frame from a signal handler */
 #define	EXCEPTIONFRAME(f, c)						\
Index: kaffe/config/m68k/openbsd2/md.h
diff -u kaffe/config/m68k/openbsd2/md.h:1.2 kaffe/config/m68k/openbsd2/md.h:1.3
--- kaffe/config/m68k/openbsd2/md.h:1.2	Wed Apr  2 08:03:28 2003
+++ kaffe/config/m68k/openbsd2/md.h	Wed Aug 27 09:35:08 2003
@@ -28,6 +28,16 @@
 #undef	SP_OFFSET
 #define	SP_OFFSET		2
 
+/**/
+/* Extra exception handling information. */
+/**/
+#include <signal.h>
+
+#define	SIGNAL_ARGS(sig, sc) int sig, siginfo_t* 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)
+
 #if defined(TRANSLATOR)
 #include "jit-md.h"
 #endif




More information about the kaffe mailing list