[kaffe] CVS kaffe (guilhem): Fixed compilation on freebsd2.

Kaffe CVS cvs-commits at kaffe.org
Sun May 9 08:24:01 PDT 2004


PatchSet 4724 
Date: 2004/05/09 15:07:12
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Fixed compilation on freebsd2.

	* config/i386/freebsd2/md.c: Fixed compilation and copyright
	advertising.

Members: 
	ChangeLog:1.2298->1.2299 
	config/i386/freebsd2/md.c:1.2->1.3 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2298 kaffe/ChangeLog:1.2299
--- kaffe/ChangeLog:1.2298	Sun May  9 14:57:18 2004
+++ kaffe/ChangeLog	Sun May  9 15:07:12 2004
@@ -1,5 +1,10 @@
 2004-05-09 Guilhem Lavaux <guilhem at kaffe.org>
 
+	* config/i386/freebsd2/md.c: Fixed compilation and copyright
+	advertising.
+
+2004-05-09 Guilhem Lavaux <guilhem at kaffe.org>
+
 	* ChangeLog: Fixed ChangeLog entry.
 
 	* config/i386/freebsd2/md.c, config/i386/freebsd2/md.h:
Index: kaffe/config/i386/freebsd2/md.c
diff -u kaffe/config/i386/freebsd2/md.c:1.2 kaffe/config/i386/freebsd2/md.c:1.3
--- kaffe/config/i386/freebsd2/md.c:1.2	Sun May  9 14:57:32 2004
+++ kaffe/config/i386/freebsd2/md.c	Sun May  9 15:07:14 2004
@@ -2,7 +2,9 @@
  * i386/freebsd2/md.c
  * FreeBSD i386 specific functions.
  *
- * 
+ * Copyright(c) 2004 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. 
@@ -18,17 +20,17 @@
 {
     int control_name[2] =
       { CTL_KERN, KERN_USRSTACK};
-    ptr_t stackbase;
-    size_t len = sizeof(ptr_t);
+    void *stackbase;
+    size_t len = sizeof(void *);
     
-    if (sysctl(nm, 2, &base, &len, NULL, 0))
+    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 base;
+   return stackbase;
 }
 
 #endif




More information about the kaffe mailing list