[kaffe] CVS kaffe (dalibor): Fixed build on mipsel-linux

Kaffe CVS cvs-commits at kaffe.org
Sat Dec 13 10:09:01 PST 2003


PatchSet 4222 
Date: 2003/12/13 18:03:52
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
Fixed build on mipsel-linux

2003-12-12  Atsushi Nemoto  <anemo at mba.ocn.ne.jp>

        Fixed build on mipsel-linux for jit3.

        * config/mips/linux/md.h
        (EXCEPTIONPROTO, MIPS_FP, EXCEPTIONFRAME) Moved to
        config/mips/linux/jit-md.h.
        (SIGNAL_ARGS, SIGNAL_CONTEXT_POINTER,
        GET_SIGNAL_CONTEXT_POINTER, SIGNAL_PC) New macros.

        * config/mips/linux/jit-md.h
        (EXCEPTIONPROTO, MIPS_FP, EXCEPTIONFRAME) New macros.

Members: 
	ChangeLog:1.1811->1.1812 
	config/mips/linux/jit-md.h:1.2->1.3 
	config/mips/linux/md.h:1.4->1.5 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1811 kaffe/ChangeLog:1.1812
--- kaffe/ChangeLog:1.1811	Fri Dec 12 17:27:48 2003
+++ kaffe/ChangeLog	Sat Dec 13 18:03:52 2003
@@ -1,3 +1,16 @@
+2003-12-12  Atsushi Nemoto  <anemo at mba.ocn.ne.jp>
+
+	Fixed build on mipsel-linux for jit3.
+
+	* config/mips/linux/md.h
+	(EXCEPTIONPROTO, MIPS_FP, EXCEPTIONFRAME) Moved to 
+	config/mips/linux/jit-md.h.
+	(SIGNAL_ARGS, SIGNAL_CONTEXT_POINTER, 
+	GET_SIGNAL_CONTEXT_POINTER, SIGNAL_PC) New macros.
+
+	* config/mips/linux/jit-md.h
+	(EXCEPTIONPROTO, MIPS_FP, EXCEPTIONFRAME) New macros.
+
 2003-12-12  Dalibor Topic <robilad at kaffe.org>
 
 	* config/parisc/sysdepCallMethod.h: New file.
Index: kaffe/config/mips/linux/jit-md.h
diff -u kaffe/config/mips/linux/jit-md.h:1.2 kaffe/config/mips/linux/jit-md.h:1.3
--- kaffe/config/mips/linux/jit-md.h:1.2	Tue Sep  7 22:29:39 1999
+++ kaffe/config/mips/linux/jit-md.h	Sat Dec 13 18:03:53 2003
@@ -26,4 +26,13 @@
 #undef SA_SIGINFO
 #endif
 
+/* Define the entry into a signal handler */
+#define EXCEPTIONPROTO  int sig, int cause, struct sigcontext *ctx
+
+/* Get the first exception frame from a signal handler */
+#define MIPS_FP 30
+#define EXCEPTIONFRAME(f, c) \
+	(f).return_frame = (void *)(unsigned long)(c)->sc_regs[MIPS_FP]; \
+	(f).return_pc = (void *)(unsigned long)(c)->sc_pc
+
 #endif
Index: kaffe/config/mips/linux/md.h
diff -u kaffe/config/mips/linux/md.h:1.4 kaffe/config/mips/linux/md.h:1.5
--- kaffe/config/mips/linux/md.h:1.4	Mon Jan  6 17:14:18 2003
+++ kaffe/config/mips/linux/md.h	Sat Dec 13 18:03:53 2003
@@ -34,15 +34,9 @@
 /* Signal handling */
 /**/
 #include <signal.h>
-
-/* Define the entry into a signal handler */
-#define EXCEPTIONPROTO  int sig, int cause, struct sigcontext *ctx
-
-/* Get the first exception frame from a signal handler */
-#define MIPS_FP 30
-#define EXCEPTIONFRAME(f, c) \
-	(f).return_frame = (void*)(c)->sc_regs[MIPS_FP]; \
-	(f).return_pc = (void*)(c)->sc_pc
-
+#define SIGNAL_ARGS(sig, sc) int sig, int dummy, struct sigcontext *sc
+#define SIGNAL_CONTEXT_POINTER(scp) struct sigcontext * scp
+#define GET_SIGNAL_CONTEXT_POINTER(sc) (sc)
+#define SIGNAL_PC(scp) scp->pc
 
 #endif




More information about the kaffe mailing list