[kaffe] CVS kaffe (guilhem): Moved some code to enable sigcontext/siginfo support.
Kaffe CVS
cvs-commits at kaffe.org
Fri Apr 23 09:40:03 PDT 2004
PatchSet 4682
Date: 2004/04/23 13:37:12
Author: guilhem
Branch: HEAD
Tag: (none)
Log:
Moved some code to enable sigcontext/siginfo support.
* config/i386/gnu/jit-md.h, config/i386/gnu/md.h,
config/i386/linux/jit-md.h, config/i386/linux/md.h,
config/i386/sco3.2v5/jit-md.h, config/i386/sco3.2v5/md.h,
config/i386/solaris2/jit-md.h, config/i386/solaris2/md.h,
config/i386/univel_svr4/jit-md.h, config/i386/univel_svr4/md.h,
config/sparc/solaris2/jit-md.h: Moved some code from jit-md.h
to md.h to enable sigcontext support in signal handlers.
Members:
ChangeLog:1.2258->1.2259
config/i386/gnu/jit-md.h:1.2->1.3
config/i386/gnu/md.h:1.4->1.5
config/i386/linux/jit-md.h:1.4->1.5
config/i386/linux/md.h:1.7->1.8
config/i386/sco3.2v5/jit-md.h:1.2->1.3
config/i386/sco3.2v5/md.h:1.4->1.5
config/i386/solaris2/jit-md.h:1.2->1.3
config/i386/solaris2/md.h:1.4->1.5
config/i386/univel_svr4/jit-md.h:1.2->1.3
config/i386/univel_svr4/md.h:1.6->1.7
config/sparc/solaris2/jit-md.h:1.2->1.3
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2258 kaffe/ChangeLog:1.2259
--- kaffe/ChangeLog:1.2258 Fri Apr 23 12:32:03 2004
+++ kaffe/ChangeLog Fri Apr 23 13:37:12 2004
@@ -1,5 +1,15 @@
2004-04-23 Guilhem Lavaux <guilhem at kaffe.org>
+ * config/i386/gnu/jit-md.h, config/i386/gnu/md.h,
+ config/i386/linux/jit-md.h, config/i386/linux/md.h,
+ config/i386/sco3.2v5/jit-md.h, config/i386/sco3.2v5/md.h,
+ config/i386/solaris2/jit-md.h, config/i386/solaris2/md.h,
+ config/i386/univel_svr4/jit-md.h, config/i386/univel_svr4/md.h,
+ config/sparc/solaris2/jit-md.h: Moved some code from jit-md.h
+ to md.h to enable sigcontext support in signal handlers.
+
+2004-04-23 Guilhem Lavaux <guilhem at kaffe.org>
+
* kaffe/kaffevm/systems/unix-jthreads/signal.c
(nullException): Fixed the prototype.
Index: kaffe/config/i386/gnu/jit-md.h
diff -u kaffe/config/i386/gnu/jit-md.h:1.2 kaffe/config/i386/gnu/jit-md.h:1.3
--- kaffe/config/i386/gnu/jit-md.h:1.2 Wed Aug 27 07:04:20 2003
+++ kaffe/config/i386/gnu/jit-md.h Fri Apr 23 13:37:18 2004
@@ -17,30 +17,6 @@
/**/
#include "i386/jit.h"
-/**/
-/* Extra exception handling information. */
-/**/
-#if defined(HAVE_FEATURES_H)
-#include <features.h>
-#endif
-#if defined(HAVE_SIGNAL_H)
-#include <signal.h>
-#endif
-#if defined(HAVE_SIGCONTEXT_H)
-#include <sigcontext.h>
-#endif
-
-/*
- * newer Linux kernel actually implement SA_SIGINFO.
- * But we don't need it, so let's turn it off
- *
- * [Don't know if it has any realtion to the HURD, but it
- * doesn't hurt, su just leave it.]
- */
-#if defined(SA_SIGINFO)
-#undef SA_SIGINFO
-#endif
-
#define EXCEPTIONPROTO SIGNAL_ARGS(sig, ctx)
/* Get the first exception frame from a signal handler */
Index: kaffe/config/i386/gnu/md.h
diff -u kaffe/config/i386/gnu/md.h:1.4 kaffe/config/i386/gnu/md.h:1.5
--- kaffe/config/i386/gnu/md.h:1.4 Thu Apr 22 16:28:11 2004
+++ kaffe/config/i386/gnu/md.h Fri Apr 23 13:37:18 2004
@@ -19,6 +19,29 @@
#include "i386/sysdepCallMethod.h"
#include "i386/threads.h"
+/**/
+/* Extra exception handling information. */
+/**/
+#if defined(HAVE_FEATURES_H)
+#include <features.h>
+#endif
+#if defined(HAVE_SIGNAL_H)
+#include <signal.h>
+#endif
+#if defined(HAVE_SIGCONTEXT_H)
+#include <sigcontext.h>
+#endif
+
+/* newer Linux kernel actually implement SA_SIGINFO.
+ * But we don't need it, so let's turn it off
+ *
+ * [Don't know if it has any realtion to the HURD, but it
+ * doesn't hurt, su just leave it.]
+ */
+#if defined(SA_SIGINFO)
+#undef SA_SIGINFO
+#endif
+
/* Function prototype for signal handlers */
#if defined(__GLIBC__)
#define SIGNAL_ARGS(sig, sc) int sig, int code, struct sigcontext* sc
Index: kaffe/config/i386/linux/jit-md.h
diff -u kaffe/config/i386/linux/jit-md.h:1.4 kaffe/config/i386/linux/jit-md.h:1.5
--- kaffe/config/i386/linux/jit-md.h:1.4 Wed Aug 27 07:04:21 2003
+++ kaffe/config/i386/linux/jit-md.h Fri Apr 23 13:37:19 2004
@@ -17,33 +17,6 @@
/**/
#include "i386/jit.h"
-/**/
-/* Extra exception handling information. */
-/**/
-#if defined(HAVE_FEATURES_H)
-#include <features.h>
-#endif
-#if defined(HAVE_ASM_SIGNAL_H) && !defined(__GLIBC__)
-#include <asm/signal.h>
-#endif
-#if defined(HAVE_SIGNAL_H)
-#include <signal.h>
-#endif
-#if defined(HAVE_ASM_SIGCONTEXT_H) && !defined(__GLIBC__)
-#include <asm/sigcontext.h>
-#endif
-#if defined(HAVE_SIGCONTEXT_H)
-#include <sigcontext.h>
-#endif
-
-/*
- * newer Linux kernel actually implement SA_SIGINFO.
- * But we don't need it, so let's turn it off
- */
-#if defined(SA_SIGINFO)
-#undef SA_SIGINFO
-#endif
-
#define EXCEPTIONPROTO SIGNAL_ARGS(sig, ctx)
/* Get the first exception frame from a signal handler */
Index: kaffe/config/i386/linux/md.h
diff -u kaffe/config/i386/linux/md.h:1.7 kaffe/config/i386/linux/md.h:1.8
--- kaffe/config/i386/linux/md.h:1.7 Thu Apr 22 16:28:11 2004
+++ kaffe/config/i386/linux/md.h Fri Apr 23 13:37:19 2004
@@ -19,6 +19,33 @@
#include "i386/sysdepCallMethod.h"
#include "i386/threads.h"
+/**/
+/* Extra exception handling information. */
+/**/
+#if defined(HAVE_FEATURES_H)
+#include <features.h>
+#endif
+#if defined(HAVE_ASM_SIGNAL_H) && !defined(__GLIBC__)
+#include <asm/signal.h>
+#endif
+#if defined(HAVE_SIGNAL_H)
+#include <signal.h>
+#endif
+#if defined(HAVE_ASM_SIGCONTEXT_H) && !defined(__GLIBC__)
+#include <asm/sigcontext.h>
+#endif
+#if defined(HAVE_SIGCONTEXT_H)
+#include <sigcontext.h>
+#endif
+
+/*
+ * newer Linux kernel actually implement SA_SIGINFO.
+ * But we don't need it, so let's turn it off
+ */
+#if defined(SA_SIGINFO)
+#undef SA_SIGINFO
+#endif
+
/* Linux requires a little initialisation */
extern void init_md(void);
#define INIT_MD() init_md()
Index: kaffe/config/i386/sco3.2v5/jit-md.h
diff -u kaffe/config/i386/sco3.2v5/jit-md.h:1.2 kaffe/config/i386/sco3.2v5/jit-md.h:1.3
--- kaffe/config/i386/sco3.2v5/jit-md.h:1.2 Wed Aug 27 07:04:23 2003
+++ kaffe/config/i386/sco3.2v5/jit-md.h Fri Apr 23 13:37:19 2004
@@ -17,14 +17,6 @@
/**/
#include "i386/jit.h"
-/**/
-/* Extra exception handling information. */
-/**/
-#include <siginfo.h>
-#include <sys/regset.h> /* Bug in ucontext.h requires this */
-#include <signal.h> /* Bug in ucontext.h requires this */
-#include <ucontext.h>
-
/* Function prototype for signal handlers */
#define EXCEPTIONPROTO SIGNAL_ARGS(sig, ctx)
Index: kaffe/config/i386/sco3.2v5/md.h
diff -u kaffe/config/i386/sco3.2v5/md.h:1.4 kaffe/config/i386/sco3.2v5/md.h:1.5
--- kaffe/config/i386/sco3.2v5/md.h:1.4 Thu Apr 22 16:28:13 2004
+++ kaffe/config/i386/sco3.2v5/md.h Fri Apr 23 13:37:20 2004
@@ -21,6 +21,14 @@
#define POSIX_SIGNALS
+/**/
+/* Extra exception handling information. */
+/**/
+#include <siginfo.h>
+#include <sys/regset.h> /* Bug in ucontext.h requires this */
+#include <signal.h> /* Bug in ucontext.h requires this */
+#include <ucontext.h>
+
#define SIGNAL_ARGS(sig, sc) int sig, siginfo_t* sip, ucontext_t* ctx
#define SIGNAL_CONTEXT_POINTER(scp) ucontext_t* ctx
#define GET_SIGNAL_CONTEXT_POINTER(scp) (scp)
Index: kaffe/config/i386/solaris2/jit-md.h
diff -u kaffe/config/i386/solaris2/jit-md.h:1.2 kaffe/config/i386/solaris2/jit-md.h:1.3
--- kaffe/config/i386/solaris2/jit-md.h:1.2 Wed Aug 27 07:04:23 2003
+++ kaffe/config/i386/solaris2/jit-md.h Fri Apr 23 13:37:20 2004
@@ -17,12 +17,6 @@
/**/
#include "i386/jit.h"
-/**/
-/* Extra exception handling information. */
-/**/
-#include <siginfo.h>
-#include <ucontext.h>
-
/* Function prototype for signal handlers */
#define EXCEPTIONPROTO SIGNAL_ARGS(sig, ctx)
Index: kaffe/config/i386/solaris2/md.h
diff -u kaffe/config/i386/solaris2/md.h:1.4 kaffe/config/i386/solaris2/md.h:1.5
--- kaffe/config/i386/solaris2/md.h:1.4 Thu Apr 22 16:28:13 2004
+++ kaffe/config/i386/solaris2/md.h Fri Apr 23 13:37:20 2004
@@ -19,6 +19,12 @@
#include "i386/sysdepCallMethod.h"
#include "i386/threads.h"
+/**/
+/* Extra exception handling information. */
+/**/
+#include <siginfo.h>
+#include <ucontext.h>
+
#define SIGNAL_ARGS(sig, sc) int sig, siginfo_t* sip, ucontext_t* sc
#define SIGNAL_CONTEXT_POINTER(scp) struct ucontext_t * scp
#define GET_SIGNAL_CONTEXT_POINTER(sc) (sc)
Index: kaffe/config/i386/univel_svr4/jit-md.h
diff -u kaffe/config/i386/univel_svr4/jit-md.h:1.2 kaffe/config/i386/univel_svr4/jit-md.h:1.3
--- kaffe/config/i386/univel_svr4/jit-md.h:1.2 Wed Aug 27 07:04:24 2003
+++ kaffe/config/i386/univel_svr4/jit-md.h Fri Apr 23 13:37:21 2004
@@ -17,12 +17,6 @@
/**/
#include "i386/jit.h"
-/**/
-/* Extra exception handling information. */
-/**/
-#include <siginfo.h>
-#include <ucontext.h>
-
/* Function prototype for signal handlers */
#define EXCEPTIONPROTO SIGNAL_ARGS(sig, ctx)
Index: kaffe/config/i386/univel_svr4/md.h
diff -u kaffe/config/i386/univel_svr4/md.h:1.6 kaffe/config/i386/univel_svr4/md.h:1.7
--- kaffe/config/i386/univel_svr4/md.h:1.6 Thu Apr 22 16:28:13 2004
+++ kaffe/config/i386/univel_svr4/md.h Fri Apr 23 13:37:21 2004
@@ -19,6 +19,12 @@
#include "i386/sysdepCallMethod.h"
#include "i386/threads.h"
+/**/
+/* Extra exception handling information. */
+/**/
+#include <siginfo.h>
+#include <ucontext.h>
+
/* Function prototype for signal handlers */
#define SIGNAL_ARGS(sig, sc) int sig, siginfo_t* sip, ucontext_t* sc
#define SIGNAL_CONTEXT_POINTER(scp) ucontext_t* scp
Index: kaffe/config/sparc/solaris2/jit-md.h
diff -u kaffe/config/sparc/solaris2/jit-md.h:1.2 kaffe/config/sparc/solaris2/jit-md.h:1.3
--- kaffe/config/sparc/solaris2/jit-md.h:1.2 Wed Aug 27 09:22:36 2003
+++ kaffe/config/sparc/solaris2/jit-md.h Fri Apr 23 13:37:21 2004
@@ -17,12 +17,6 @@
/**/
#include "sparc/jit.h"
-/**/
-/* Extra exception handling information. */
-/**/
-#include <siginfo.h>
-#include <ucontext.h>
-
/* Function prototype for signal handlers */
#define EXCEPTIONPROTO SIGNAL_ARGS(sig, ctx)
More information about the kaffe
mailing list