On Tue, Jan 20, 2009 at 12:50:58AM +0000, Owain Ainsworth wrote:
> Here on the mach64 built into the blade 100, i get the opening screen
> fine (the colours are even ok).
>
> The it gets a sig10 (Bus error) and the screen remains black.
hmmm. going to put this one into the tree tomorrow (yes, still with
ONLY_FOR_ARCHS):
Index: Makefile
===================================================================
RCS file: /cvs/ports/games/openarena/Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile
--- Makefile 5 Nov 2008 21:25:28 -0000 1.3
+++ Makefile 2 Feb 2009 21:28:22 -0000
@@ -1,6 +1,6 @@
# $OpenBSD: Makefile,v 1.3 2008/11/05 21:25:28 weerd Exp $
-ONLY_FOR_ARCHS = i386 macppc
+ONLY_FOR_ARCHS = amd64 i386 macppc
COMMENT-main = OpenArena client
COMMENT-server = OpenArena server
@@ -16,7 +16,7 @@ PKGNAME-main = openarena-${V}
PKGNAME-server = openarena-server-${V}
PKGNAME-data = openarena-data-${V}
-PKG_ARCH-data = i386,macppc
+PKG_ARCH-data = amd64,i386,macppc
DISTNAME = oa${V:S/.//g}
DISTFILES = ${DISTNAME}.zip openarena-engine-${V}-1.tar.bz2
Index: patches/patch-Makefile
===================================================================
RCS file: /cvs/ports/games/openarena/patches/patch-Makefile,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 patch-Makefile
--- patches/patch-Makefile 27 Oct 2008 13:29:02 -0000 1.1.1.1
+++ patches/patch-Makefile 2 Feb 2009 21:28:22 -0000
@@ -1,6 +1,6 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2008/10/27 13:29:02 weerd Exp $
---- Makefile.orig Thu Aug 7 00:52:08 2008
-+++ Makefile Fri Aug 22 21:27:21 2008
+--- Makefile.orig Sat Aug 9 22:22:37 2008
++++ Makefile Sun Jan 18 21:10:27 2009
@@ -143,8 +143,8 @@ endif
#############################################################################
@@ -80,7 +80,7 @@ $OpenBSD: patch-Makefile,v 1.1.1.1 2008/
$(echo_cmd) "LD $@"
$(Q)$(CC) -o $@ $(Q3DOBJ) $(LDFLAGS)
-@@ -2041,17 +2040,17 @@ copyfiles: release
+@@ -2037,17 +2036,17 @@ copyfiles: release
-$(MKDIR) -p -m 0755 $(COPYDIR)/missionpack
ifneq ($(BUILD_CLIENT),0)
Index: patches/patch-code_qcommon_vm_interpreted_c
===================================================================
RCS file: patches/patch-code_qcommon_vm_interpreted_c
diff -N patches/patch-code_qcommon_vm_interpreted_c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-code_qcommon_vm_interpreted_c 2 Feb 2009 21:28:22 -0000
@@ -0,0 +1,23 @@
+$OpenBSD$
+--- code/qcommon/vm_interpreted.c.orig Sat Aug 9 18:28:20 2008
++++ code/qcommon/vm_interpreted.c Sat Jan 10 21:23:02 2009
+@@ -532,8 +532,8 @@ nextInstruction2:
+
+ //VM_LogSyscalls( (int *)&image[ programStack + 4 ] );
+ {
+- intptr_t* argptr = (intptr_t *)&image[
programStack + 4 ];
+- #if __WORDSIZE == 64
++ intptr_t* argptr;
++ #if LONG_BIT == 64
+ // the vm has ints on the stack, we expect
+ // longs so we have to convert it
+ intptr_t argarr[16];
+@@ -542,6 +542,8 @@ nextInstruction2:
+ argarr[i] = *(int*)&image[
programStack + 4 + 4*i ];
+ }
+ argptr = argarr;
++ #else
++ argptr = (intptr_t *)&image[
programStack + 4 ];
+ #endif
+ r = vm->systemCall( argptr );
+ }