[kaffe] CVS kaffe (robilad): Small cleanups for NetBSD
Kaffe CVS
cvs-commits at kaffe.org
Sun Apr 24 06:53:16 PDT 2005
PatchSet 6419
Date: 2005/04/24 13:46:01
Author: robilad
Branch: HEAD
Tag: (none)
Log:
Small cleanups for NetBSD
2005-04-24 Dalibor Topic <robilad at kaffe.org>
* config/i386/netbsd1/md.h:
Include <sys/signal.h> for sigcontext on NetBSD CVS head.
* kaffe/kaffevm/systems/unix-pthreads/signal.c:
Include jit-md.h to make sure that exceptionFrame is defined.
Members:
ChangeLog:1.3947->1.3948
config/i386/netbsd1/md.h:INITIAL->1.10
kaffe/kaffevm/systems/unix-pthreads/signal.c:1.20->1.21
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3947 kaffe/ChangeLog:1.3948
--- kaffe/ChangeLog:1.3947 Sun Apr 24 13:27:20 2005
+++ kaffe/ChangeLog Sun Apr 24 13:46:01 2005
@@ -1,5 +1,13 @@
2005-04-24 Dalibor Topic <robilad at kaffe.org>
+ * config/i386/netbsd1/md.h:
+ Include <sys/signal.h> for sigcontext on NetBSD CVS head.
+
+ * kaffe/kaffevm/systems/unix-pthreads/signal.c:
+ Include jit-md.h to make sure that exceptionFrame is defined.
+
+2005-04-24 Dalibor Topic <robilad at kaffe.org>
+
* kaffe/kaffevm/systems/unix-pthreads/signal.c
(nullException, floatingException): Removed prototypes
that were confusing the compiler on NetBSD CVS HEAD.
===================================================================
Checking out kaffe/config/i386/netbsd1/md.h
RCS: /home/cvs/kaffe/kaffe/config/i386/netbsd1/md.h,v
VERS: 1.10
***************
--- /dev/null Sun Aug 4 19:57:58 2002
+++ kaffe/config/i386/netbsd1/md.h Sun Apr 24 13:53:15 2005
@@ -0,0 +1,50 @@
+/*
+ * i386/netbsd1/md.h
+ * NetBSD i386 configuration information.
+ *
+ * Copyright (c) 1996, 1997
+ * Transvirtual Technologies, Inc. All rights reserved.
+ *
+ * Copyright (c) 2003, 2004, 2005
+ * Kaffe.org contributors. See ChangeLog for details.
+ *
+ * See the file "license.terms" for information on usage and redistribution
+ * of this file.
+ */
+
+#ifndef __i386_netbsd1_md_h
+#define __i386_netbsd1_md_h
+
+#include "i386/common.h"
+#include "i386/threads.h"
+
+#if defined(HAVE_SYS_RESOURCE_H)
+#include <sys/resource.h>
+#endif
+#if defined(HAVE_SYS_SIGNAL_H)
+#include <sys/signal.h>
+#endif
+#if defined(HAVE_UNISTD_H)
+#include <unistd.h>
+#endif
+
+/*
+ * Redefine stack pointer offset.
+ */
+#undef SP_OFFSET
+#define SP_OFFSET 2
+
+#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(sc) (sc)
+#define SIGNAL_PC(scp) (scp)->sc_pc
+#define STACK_POINTER(scp) (scp)->sc_sp
+
+#if defined(TRANSLATOR)
+#include "jit-md.h"
+#endif
+
+#include "kaffe-unix-stack.h"
+
+#endif
+
Index: kaffe/kaffe/kaffevm/systems/unix-pthreads/signal.c
diff -u kaffe/kaffe/kaffevm/systems/unix-pthreads/signal.c:1.20 kaffe/kaffe/kaffevm/systems/unix-pthreads/signal.c:1.21
--- kaffe/kaffe/kaffevm/systems/unix-pthreads/signal.c:1.20 Sun Apr 24 13:27:23 2005
+++ kaffe/kaffe/kaffevm/systems/unix-pthreads/signal.c Sun Apr 24 13:46:09 2005
@@ -33,6 +33,7 @@
#define EXCEPTIONFRAME(f, c) /* Does nothing */
#define EXCEPTIONFRAMEPTR 0
#elif defined(TRANSLATOR)
+#include "jit-md.h"
#define DEFINEFRAME() exceptionFrame frame
#define EXCEPTIONFRAMEPTR &frame
#endif /* TRANSLATOR */
More information about the kaffe
mailing list