[kaffe] CVS kaffe (dalibor): Build fixes for mips-irix

Kaffe CVS cvs-commits at kaffe.org
Tue Jul 13 07:17:35 PDT 2004


PatchSet 4959 
Date: 2004/07/13 13:51:54
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
Build fixes for mips-irix

2004-07-13  Riccardo Mottola <rmottola at users.sf.net>

        * config/mips/atomicity.h:
        removed inline assembler comments from swp&cmp since they confuse some assemblers

        * config/mips/irix5/md.h:
        added signal macros

Members: 
	ChangeLog:1.2523->1.2524 
	config/mips/atomicity.h:1.1->1.2 
	config/mips/irix5/md.h:1.5->1.6 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2523 kaffe/ChangeLog:1.2524
--- kaffe/ChangeLog:1.2523	Tue Jul 13 12:43:11 2004
+++ kaffe/ChangeLog	Tue Jul 13 13:51:54 2004
@@ -1,3 +1,11 @@
+2004-07-13  Riccardo Mottola <rmottola at users.sf.net>
+
+        * config/mips/atomicity.h:
+        removed inline assembler comments from swp&cmp since they confuse some assemblers
+
+        * config/mips/irix5/md.h:
+        added signal macros
+
 2004-07-13  Kiyo Inaba <inaba at src.ricoh.co.jp>
 
 	* config/m68k/netbsd1/md.h:
Index: kaffe/config/mips/atomicity.h
diff -u kaffe/config/mips/atomicity.h:1.1 kaffe/config/mips/atomicity.h:1.2
--- kaffe/config/mips/atomicity.h:1.1	Wed Jul  7 22:15:08 2004
+++ kaffe/config/mips/atomicity.h	Tue Jul 13 13:52:00 2004
@@ -29,8 +29,7 @@
   long int ret, temp;
 
   __asm__ __volatile__
-    ("/* Inline compare & swap */\n"
-     "1:\n\t"
+    ("1:\n\t"
      ".set	push\n\t"
      ".set	mips2\n\t"
      "ll	%1,%5\n\t"
@@ -41,7 +40,6 @@
      ".set	pop\n\t"
      "beqz	%0,1b\n"
      "2:\n\t"
-     "/* End compare & swap */"
      : "=&r" (ret), "=&r" (temp), "=m" (*p)
      : "r" (oldval), "r" (newval), "m" (*p)
      : "memory");
Index: kaffe/config/mips/irix5/md.h
diff -u kaffe/config/mips/irix5/md.h:1.5 kaffe/config/mips/irix5/md.h:1.6
--- kaffe/config/mips/irix5/md.h:1.5	Mon Jul 12 17:51:19 2004
+++ kaffe/config/mips/irix5/md.h	Tue Jul 13 13:52:00 2004
@@ -19,6 +19,15 @@
 #include "mips/sysdepCallMethod.h"
 #include "mips/threads.h"
 
+/*                 */
+/* Signal handling */
+/*                 */
+
+#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) ((scp)->sc_pc)             /* pc at time of signal */
+#define STACK_POINTER(scp) ((scp)->sc_badvaddr)   /* cp0 bad virtual address */
 
 #define SIGNAL_ARGS(sig, sc) int sig, int code UNUSED, struct sigcontext *sc
 #define SIGNAL_CONTEXT_POINTER(scp) struct sigcontext *scp




More information about the kaffe mailing list