Subject: pkg/23361: support for MIPS in gforth
To: None <gnats-bugs@gnats.netbsd.org>
From: None <root@arale.act.uji.es>
List: netbsd-bugs
Date: 11/03/2003 19:48:56
>Number: 23361
>Category: pkg
>Synopsis: support for MIPS in gforth
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Nov 03 18:40:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Jorge Acereda
>Release: NetBSD 1.6.1_RC1
>Organization:
>Environment:
System: NetBSD arale.act.uji.es 1.6.1_RC1 NetBSD 1.6.1_RC1 (ARALE) #3: Thu Feb 27 21:40:54 CET 2003 jacereda@ps2linux:/usr/local/home/jacereda/netbsd/src/sys/arch/playstation2/compile/ARALE playstation2
Architecture: mipsel
Machine: playstation2
>Description:
The following patch adds support to gforth for mipsel.
Tested only on playstation2.
>How-To-Repeat:
>Fix:
cvs server: Diffing .
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/gforth/Makefile,v
retrieving revision 1.11
diff -u -r1.11 Makefile
--- Makefile 2003/03/24 23:36:33 1.11
+++ Makefile 2003/11/03 18:33:57
@@ -8,7 +8,7 @@
HOMEPAGE= http://www.complang.tuwien.ac.at/forth/gforth/
COMMENT= Fast interpreter for the Forth language
-ONLY_FOR_PLATFORM= *-*-alpha *-*-i386 *-*-m68k *-*-powerpc *-*-sparc
+ONLY_FOR_PLATFORM= *-*-alpha *-*-i386 *-*-m68k *-*-powerpc *-*-sparc *-*-mipsel
GNU_CONFIGURE= YES
# Make sure elisp will be installed even if no emacs installed.
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/lang/gforth/distinfo,v
retrieving revision 1.2
diff -u -r1.2 distinfo
--- distinfo 2001/04/19 15:00:50 1.2
+++ distinfo 2003/11/03 18:33:57
@@ -5,3 +5,4 @@
SHA1 (patch-aa) = 426205f27609f24f818837a853c974134c0d4035
SHA1 (patch-ab) = a80fd7553acce1168931171b9c100eb25e2fa19a
SHA1 (patch-ac) = d9155ee2d7f06b3aafeaa5fc2719948deb1c9c7e
+SHA1 (patch-ad) = 4e902e2936250abf211b0a203a8757ac457ad4f0
cvs server: Diffing patches
Index: patches/patch-ad
===================================================================
RCS file: patch-ad
diff -N patch-ad
--- /dev/null Thu Jul 11 11:18:53 2002
+++ patch-ad Mon Nov 3 18:33:58 2003
@@ -0,0 +1,27 @@
+--- arch/mips/machine.h.~1.10.~ Sat Sep 23 18:22:05 2000
++++ arch/mips/machine.h Mon Oct 27 00:15:28 2003
+@@ -44,15 +44,22 @@
+ /* configure may define both on the MIPS */
+ #endif
+
+-#ifdef ultrix
++#if defined(ultrix) || defined(__NetBSD__)
+ #include <mips/cachectl.h>
+ #else
+ /* works on Irix */
+ #include <sys/cachectl.h>
+ #endif
+
+-#define FLUSH_ICACHE(addr,size) \
++
++#if defined(__NetBSD__)
++# define FLUSH_ICACHE(addr,size) \
++ _cacheflush((char *)(addr), (int)(size), BCACHE)
++#else
++# define FLUSH_ICACHE(addr,size) \
+ cacheflush((char *)(addr), (int)(size), BCACHE)
++#endif
++
+
+ #include "../generic/machine.h"
+
>Release-Note:
>Audit-Trail:
>Unformatted: