[kaffe] CVS kaffe (guilhem): Patch for GNU Hurd

Kaffe CVS cvs-commits at kaffe.org
Sun Jul 17 05:23:16 PDT 2005


PatchSet 6739 
Date: 2005/07/17 12:18:16
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Patch for GNU Hurd

2005-07-17  Riccardo Mottola  <multix at gmail.com>

        * config/i386/gnu/md.h
        (SIGNAL_PC, STACK_POINTER): Get the right field in sigcontext.

Members: 
	ChangeLog:1.4263->1.4264 
	config/i386/gnu/md.h:INITIAL->1.11 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4263 kaffe/ChangeLog:1.4264
--- kaffe/ChangeLog:1.4263	Sun Jul 17 09:57:53 2005
+++ kaffe/ChangeLog	Sun Jul 17 12:18:16 2005
@@ -1,4 +1,9 @@
-2005-07-16  Guilhem Lavaux  <guilhem at kaffe.org>
+2005-07-17  Riccardo Mottola  <multix at gmail.com>
+
+	* config/i386/gnu/md.h
+	(SIGNAL_PC, STACK_POINTER): Get the right field in sigcontext.
+
+2005-07-17  Guilhem Lavaux  <guilhem at kaffe.org>
 
 	* kaffe/kaffevm/kaffe-gc/gc-mem.c
 	(gc_block_alloc): Relocate gc_last_block too.
===================================================================
Checking out kaffe/config/i386/gnu/md.h
RCS:  /home/cvs/kaffe/kaffe/config/i386/gnu/md.h,v
VERS: 1.11
***************
--- /dev/null	Sun Aug  4 19:57:58 2002
+++ kaffe/config/i386/gnu/md.h	Sun Jul 17 12:23:15 2005
@@ -0,0 +1,72 @@
+/*
+ * i386/gnu/md.h
+ * Linux i386 configuration information.
+ *
+ * Copyright (c) 1996, 1997
+ *	Transvirtual Technologies, Inc.  All rights reserved.
+ *
+ * Copyright (c) 2003-2005
+ *      Kaffe.org contributors. See ChangeLog for details.
+ *
+ * See the file "license.terms" for information on usage and redistribution 
+ * of this file. 
+ */
+
+#ifndef __ki386_gnu_md_h
+#define __ki386_gnu_md_h
+
+#include "i386/common.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
+#if defined(HAVE_SYS_RESOURCE_H)
+#include <sys/resource.h>
+#endif
+#if defined(HAVE_UNISTD_H)
+#include <unistd.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
+#define SIGNAL_CONTEXT_POINTER(scp) struct sigcontext * scp
+#define GET_SIGNAL_CONTEXT_POINTER(scp) (scp)
+#else
+#error Do not know how to define EXCEPTIONPROTO
+#endif
+
+#define SIGNAL_PC(scp) (scp)->sc_eip
+#define STACK_POINTER(scp) (scp)->sc_uesp
+
+#if defined(TRANSLATOR)
+#include "jit-md.h"
+#endif
+
+/* Linux requires a little initialisation */
+extern void init_md(void);
+#define	INIT_MD()	init_md()
+
+#include "kaffe-unix-stack.h"
+
+#endif




More information about the kaffe mailing list