[kaffe] CVS kaffe (robilad): added port to alpha-freebsd

Kaffe CVS cvs-commits at kaffe.org
Sun Mar 26 16:42:27 PST 2006


PatchSet 7194 
Date: 2006/03/27 05:43:19
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
added port to alpha-freebsd

2006-03-26  Dalibor Topic  <robilad at kaffe.org>

        New port to alpha-freebsd.

        * config/alpha/freebsd2/config.frag,
        config/alpha/freebsd2/md.c,
        config/alpha/freebsd2/md.h:
        New files.

Members: 
	ChangeLog:1.4700->1.4701 
	README:1.38->1.39 
	WHATSNEW:1.54->1.55 
	config/Makefile.am:1.67->1.68 
	config/Makefile.in:1.215->1.216 
	config/alpha/freebsd2/config.frag:INITIAL->1.1 
	config/alpha/freebsd2/md.c:INITIAL->1.1 
	config/alpha/freebsd2/md.h:INITIAL->1.1 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4700 kaffe/ChangeLog:1.4701
--- kaffe/ChangeLog:1.4700	Sun Mar 26 18:31:40 2006
+++ kaffe/ChangeLog	Sun Mar 26 21:43:19 2006
@@ -1,5 +1,16 @@
 2006-03-26  Dalibor Topic  <robilad at kaffe.org>
 
+	New port to alpha-freebsd.
+
+	* config/alpha/freebsd2/config.frag,
+	config/alpha/freebsd2/md.c,
+	config/alpha/freebsd2/md.h:
+	New files.
+
+2006-03-26  Dalibor Topic  <robilad at kaffe.org>
+
+	New port to ia64-freebsd.
+
 	* config/ia64/freebsd2/config.frag,
 	config/ia64/freebsd2/md.c,
 	config/ia64/freebsd2/md.h:
Index: kaffe/README
diff -u kaffe/README:1.38 kaffe/README:1.39
--- kaffe/README:1.38	Sun Mar 26 18:31:43 2006
+++ kaffe/README	Sun Mar 26 21:43:23 2006
@@ -33,8 +33,9 @@
   ========================================================================
   ========================================================================
   Alpha     | J+I  |    Linux		OSF/1		NetBSD 1.x
+            |      |    FreeBSD
   ------------------------------------------------------------------------
-  ARM       | J+I  |    Linux/Netwinder NetBSD 1.x	RISC OS
+  ARM       | J+I  |    Linux           NetBSD 1.x	RISC OS
   ------------------------------------------------------------------------
   Blackfin  | J+I  |    uclinux
   ------------------------------------------------------------------------
@@ -48,7 +49,7 @@
             |      |    GNU Hurd	BeOS		Cygwin
 	    |      |    Darwin          DragonFly BSD
   ------------------------------------------------------------------------
-  MIPS      | J+I  |    Linux/Cobalt    IRIX 5 & 6	NetBSD 1.x
+  MIPS      | J+I  |    Linux           IRIX 5 & 6	NetBSD 1.x
 	    |	   |	Ultrix 4.2      PS2Linux
   ------------------------------------------------------------------------
   M68K      | J+I  |    AmigaOS         NeXTStep 3.x    NetBSD 1.x
Index: kaffe/WHATSNEW
diff -u kaffe/WHATSNEW:1.54 kaffe/WHATSNEW:1.55
--- kaffe/WHATSNEW:1.54	Sun Mar 26 18:31:43 2006
+++ kaffe/WHATSNEW	Sun Mar 26 21:43:23 2006
@@ -12,7 +12,7 @@
 * Merged in port to DROPS.
 * Merged in port to Blackfin CPU.
 * Support for DragonFly BSD.
-* Ported to ia64-freebsd
+* Ported to ia64-freebsd and alpha-freebsd.
 * Added simple direct threading interpreter implementation.
 
 What's New in Kaffe 1.1.6
Index: kaffe/config/Makefile.am
diff -u kaffe/config/Makefile.am:1.67 kaffe/config/Makefile.am:1.68
--- kaffe/config/Makefile.am:1.67	Sun Mar 26 18:31:45 2006
+++ kaffe/config/Makefile.am	Sun Mar 26 21:43:23 2006
@@ -64,6 +64,9 @@
 	alpha/jit-alpha.def \
 	alpha/jit-icode.h \
 	alpha/jit.h \
+	alpha/freebsd2/config.frag \
+	alpha/freebsd2/md.c \
+	alpha/freebsd2/md.h \
 	alpha/linux/config.frag \
 	alpha/linux/jit-md.h \
 	alpha/linux/md.c \
Index: kaffe/config/Makefile.in
diff -u kaffe/config/Makefile.in:1.215 kaffe/config/Makefile.in:1.216
--- kaffe/config/Makefile.in:1.215	Sun Mar 26 18:31:45 2006
+++ kaffe/config/Makefile.in	Sun Mar 26 21:43:24 2006
@@ -401,6 +401,9 @@
 	alpha/jit-alpha.def \
 	alpha/jit-icode.h \
 	alpha/jit.h \
+	alpha/freebsd2/config.frag \
+	alpha/freebsd2/md.c \
+	alpha/freebsd2/md.h \
 	alpha/linux/config.frag \
 	alpha/linux/jit-md.h \
 	alpha/linux/md.c \
@@ -864,7 +867,7 @@
 	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
 
 distdir: $(DISTFILES)
-	$(mkdir_p) $(distdir)/alpha $(distdir)/alpha/linux $(distdir)/alpha/netbsd1 $(distdir)/alpha/osf $(distdir)/arm $(distdir)/arm/linux $(distdir)/arm/netbsd1 $(distdir)/arm/riscos $(distdir)/bfin $(distdir)/bfin/uclinux $(distdir)/generic $(distdir)/i386 $(distdir)/i386/beos $(distdir)/i386/bsdi $(distdir)/i386/cygwin32 $(distdir)/i386/darwin $(distdir)/i386/dgux $(distdir)/i386/freebsd2 $(distdir)/i386/gnu $(distdir)/i386/linux $(distdir)/i386/netbsd1 $(distdir)/i386/nextstep3 $(distdir)/i386/openbsd2 $(distdir)/i386/oskit $(distdir)/i386/qnx $(distdir)/i386/sco3.2v5 $(distdir)/i386/solaris2 $(distdir)/i386/univel_svr4 $(distdir)/i386/win32 $(distdir)/ia64 $(distdir)/ia64/freebsd2 $(distdir)/ia64/hpux $(distdir)/ia64/linux $(distdir)/m68k $(distdir)/m68k/a-ux $(distdir)/m68k/amigaos $(distdir)/m68k/linux $(distdir)/m68k/netbsd1 $(distdir)/m68k/nextstep3 $(distdir)/m68k/openbsd2 $(distdir)/m68k/sunos4 $(distdir)/mips $(distdir)/mips/irix5 $(distdir)/mips/linux $(distdir)/mips/netbsd1 $(distdir)/mips/ultrix4 $(distdir)/parisc $(distdir)/parisc/hpux $(distdir)/parisc/linux $(distdir)/powerpc $(distdir)/powerpc/aix $(distdir)/powerpc/bits $(distdir)/powerpc/darwin $(distdir)/powerpc/linux $(distdir)/powerpc/machten $(distdir)/powerpc/netbsd1 $(distdir)/powerpc/powerpc32 $(distdir)/powerpc/powerpc64 $(distdir)/s390 $(distdir)/s390/linux $(distdir)/sh $(distdir)/sh/linux $(distdir)/sparc $(distdir)/sparc/bsdi3 $(distdir)/sparc/linux $(distdir)/sparc/netbsd1 $(distdir)/sparc/nextstep3 $(distdir)/sparc/openbsd2 $(distdir)/sparc/solaris2 $(distdir)/sparc/sunos4 $(distdir)/sparc/uxpds $(distdir)/x86_64 $(distdir)/x86_64/freebsd2 $(distdir)/x86_64/linux
+	$(mkdir_p) $(distdir)/alpha $(distdir)/alpha/freebsd2 $(distdir)/alpha/linux $(distdir)/alpha/netbsd1 $(distdir)/alpha/osf $(distdir)/arm $(distdir)/arm/linux $(distdir)/arm/netbsd1 $(distdir)/arm/riscos $(distdir)/bfin $(distdir)/bfin/uclinux $(distdir)/generic $(distdir)/i386 $(distdir)/i386/beos $(distdir)/i386/bsdi $(distdir)/i386/cygwin32 $(distdir)/i386/darwin $(distdir)/i386/dgux $(distdir)/i386/freebsd2 $(distdir)/i386/gnu $(distdir)/i386/linux $(distdir)/i386/netbsd1 $(distdir)/i386/nextstep3 $(distdir)/i386/openbsd2 $(distdir)/i386/oskit $(distdir)/i386/qnx $(distdir)/i386/sco3.2v5 $(distdir)/i386/solaris2 $(distdir)/i386/univel_svr4 $(distdir)/i386/win32 $(distdir)/ia64 $(distdir)/ia64/freebsd2 $(distdir)/ia64/hpux $(distdir)/ia64/linux $(distdir)/m68k $(distdir)/m68k/a-ux $(distdir)/m68k/amigaos $(distdir)/m68k/linux $(distdir)/m68k/netbsd1 $(distdir)/m68k/nextstep3 $(distdir)/m68k/openbsd2 $(distdir)/m68k/sunos4 $(distdir)/mips $(distdir)/mips/irix5 $(distdir)/mips/linux $(distdir)/mips/netbsd1 $(distdir)/mips/ultrix4 $(distdir)/parisc $(distdir)/parisc/hpux $(distdir)/parisc/linux $(distdir)/powerpc $(distdir)/powerpc/aix $(distdir)/powerpc/bits $(distdir)/powerpc/darwin $(distdir)/powerpc/linux $(distdir)/powerpc/machten $(distdir)/powerpc/netbsd1 $(distdir)/powerpc/powerpc32 $(distdir)/powerpc/powerpc64 $(distdir)/s390 $(distdir)/s390/linux $(distdir)/sh $(distdir)/sh/linux $(distdir)/sparc $(distdir)/sparc/bsdi3 $(distdir)/sparc/linux $(distdir)/sparc/netbsd1 $(distdir)/sparc/nextstep3 $(distdir)/sparc/openbsd2 $(distdir)/sparc/solaris2 $(distdir)/sparc/sunos4 $(distdir)/sparc/uxpds $(distdir)/x86_64 $(distdir)/x86_64/freebsd2 $(distdir)/x86_64/linux
 	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
 	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
 	list='$(DISTFILES)'; for file in $$list; do \
===================================================================
Checking out kaffe/config/alpha/freebsd2/config.frag
RCS:  /home/cvs/kaffe/kaffe/config/alpha/freebsd2/config.frag,v
VERS: 1.1
***************
--- /dev/null	Sun Aug  4 19:57:58 2002
+++ kaffe/config/alpha/freebsd2/config.frag	Mon Mar 27 00:42:27 2006
@@ -0,0 +1,3 @@
+#
+# alpha/FreeBSD configuration
+#
===================================================================
Checking out kaffe/config/alpha/freebsd2/md.c
RCS:  /home/cvs/kaffe/kaffe/config/alpha/freebsd2/md.c,v
VERS: 1.1
***************
--- /dev/null	Sun Aug  4 19:57:58 2002
+++ kaffe/config/alpha/freebsd2/md.c	Mon Mar 27 00:42:27 2006
@@ -0,0 +1,40 @@
+/*
+ * alpha/freebsd2/md.c
+ * FreeBSD ALPHA specific functions.
+ *
+ * Copyright(c) 2004, 2005 The Kaffe.org's developers.
+ *
+ * Some parts are imported from the boehm-gc.
+ *
+ * See the file "license.terms" for information on usage and redistribution 
+ * of this file. 
+ */
+
+#include "config.h"
+#include "config-std.h"
+
+#if defined(HAVE_SYS_TYPES_H)
+#include <sys/types.h>
+#endif
+
+#if defined(HAVE_SYS_SYSCTL_H)
+#include <sys/sysctl.h>
+
+void *mdGetStackEnd(void)
+{
+    int control_name[2] =
+      { CTL_KERN, KERN_USRSTACK};
+    void *stackbase;
+    size_t len = sizeof(void *);
+    
+    if (sysctl(control_name, 2, &stackbase, &len, NULL, 0))
+      {
+	fprintf(stderr, 
+		"Kaffe VM has not been able to retrieve the pointer to the stack base\n"
+		"Aborting...\n");
+	exit(1);
+      }
+   return stackbase;
+}
+
+#endif
===================================================================
Checking out kaffe/config/alpha/freebsd2/md.h
RCS:  /home/cvs/kaffe/kaffe/config/alpha/freebsd2/md.h,v
VERS: 1.1
***************
--- /dev/null	Sun Aug  4 19:57:58 2002
+++ kaffe/config/alpha/freebsd2/md.h	Mon Mar 27 00:42:27 2006
@@ -0,0 +1,48 @@
+/*
+ * alpha/freebsd2/md.h
+ * FreeBSD ALPHA configuration information.
+ *
+ * Copyright (c) 2002
+ *	MandrakeSoft.  All rights reserved.
+ *
+ * Copyright (c) 2001
+ *	Transvirtual Technologies, Inc.  All rights reserved.
+ *
+ * See the file "license.terms" for information on usage and redistribution
+ * of this file.
+ */
+
+#ifndef __alpha_freebsd_md_h
+#define __alpha_freebsd_md_h
+
+#include "alpha/common.h"
+#include "alpha/threads.h"
+
+#include <sys/types.h>
+#include <machine/reg.h>
+
+#undef	SP_OFFSET
+#define	SP_OFFSET       34
+/*
+#undef  FP_OFFSET
+#define FP_OFFSET	9
+*/
+
+#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"
+
+#if defined(HAVE_SYS_SYSCTL_H)
+#define KAFFEMD_STACKEND
+extern void *mdGetStackEnd(void);
+#endif
+
+#endif




More information about the kaffe mailing list