[kaffe] CVS kaffe (dalibor): Fixed compilation problems on arm-linux

Kaffe CVS cvs-commits at kaffe.org
Thu Mar 11 03:57:06 PST 2004


PatchSet 4505 
Date: 2004/03/11 11:38:08
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
Fixed compilation problems on arm-linux

2004-03-09  Holger Schurig <h.schurig at mn-logistik.de>

        * head/config/arm/linux/md.c:
        Fixed compilation problems.

Members: 
	ChangeLog:1.2084->1.2085 
	config/arm/linux/md.c:1.4->1.5 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2084 kaffe/ChangeLog:1.2085
--- kaffe/ChangeLog:1.2084	Wed Mar 10 22:39:58 2004
+++ kaffe/ChangeLog	Thu Mar 11 11:38:08 2004
@@ -1,3 +1,8 @@
+2004-03-09  Holger Schurig <h.schurig at mn-logistik.de>
+
+	* head/config/arm/linux/md.c:
+	Fixed compilation problems.
+
 2004-03-10  Timothy S. Stack <stack at cs.utah.edu>
 
 	* developers/gdbinit:
Index: kaffe/config/arm/linux/md.c
diff -u kaffe/config/arm/linux/md.c:1.4 kaffe/config/arm/linux/md.c:1.5
--- kaffe/config/arm/linux/md.c:1.4	Tue Mar  9 17:35:48 2004
+++ kaffe/config/arm/linux/md.c	Thu Mar 11 11:38:10 2004
@@ -14,13 +14,6 @@
 #include <sched.h>
 #include <asm/unistd.h>
 
-/* If VM_EXEC is not defined, use definition from 
- * linux/mm.h.
- */
-#if !defined(VM_EXEC)
-long VM_EXEC =       0x00000004;
-#endif /* !defined(VM_EXEC) */
-
 void            
 init_md(void)
 {       
@@ -32,12 +25,13 @@
 /**
  * Shamelessly stolen from parrot... ([perl]/parrot/jit/arm/jit_emit.h arm_sync_d_i_cache)
  *
- * r2 should be zero for 2.4 (but it's ignored) so passing VM_EXEC (needed for 2.6) should be okay.
+ * r2 should be zero for 2.4 (but it's ignored) so passing VM_EXEC (needed
+ * for 2.6) should be okay.
  */
 void flush_dcache(void *start, void *end) {
   __asm __volatile ("mov r0, %0\n"
 		    "mov r1, %1\n"
-		    "mov r2, #VM_EXEC\n"
+		    "mov r2, #4\n"		/* this is VM_EXEC from linux/mm.h, needed for Kernel 2.6 */
 		    "swi " __sys1(__ARM_NR_cacheflush) "\n"
 		    : /* no return value */
 		    : "r" ((long)start), "r" ((long)end)




More information about the kaffe mailing list