[kaffe] m68k/netbsd again

Kiyo Inaba inaba at src.ricoh.co.jp
Mon Jul 12 07:50:03 PDT 2004


Hi all,

NetBSD uses some special treatment for structure with 'long long'...
We need one more mod for the md.h.

I'm afraid whether this patch can be applied or not, but anyone can
understand what I mean from this patch.

Kiyo

diff -Naur kaffe-snap-040610.orig/config/m68k/netbsd1/md.h kaffe-snap-040610/config/m68k/netbsd1/md.h
--- kaffe-snap-040610.orig/config/m68k/netbsd1/md.h	Tue Jun  8 04:14:21 2004
+++ kaffe-snap-040610/config/m68k/netbsd1/md.h	Mon Jul 12 23:20:46 2004
@@ -16,7 +16,11 @@
 
 #include "m68k/common.h"
 #include "m68k/threads.h"
+
+/*
+ * Alignment in structure is 8 bytes packed
+ */
+#define ALIGNMENT_OF_SIZE(S)    ((S) < 8 ? (S) : 8)
 
 /*
  * Redefine stack pointer offset.





More information about the kaffe mailing list