Subject: Re: NOTICE: thorpej-mips-cache branch will be merged today
To: Jason R Thorpe <thorpej@wasabisystems.com>
From: FUKAUMI Naoki <naoki@fukaumi.org>
List: port-mips
Date: 11/15/2001 16:49:48
On Wed, Nov 14, 2001 at 09:28:39AM -0800, Jason R Thorpe wrote:
> * TX39 (cache_tx39) -- uch@netbsd.org has
> committed fixes to this code. Awaiting
> confirmation that it is working properly.
I have SHARP Telios HC-VJ1C (which has TX3922).
I compiled TX3922 kernel from -current 2001/11/15 source on i386.
I got some error...
/home/tools/bin/mipsel--netbsd-gcc -EL -x assembler-with-cpp -traditional-cpp -D_LOCORE -mips2 -I. -I../../../../arch -I../../../.. -nostdinc -DMIPS1 -DENABLE_MIPS_TX3900 -DNOFPU -DSOFTFLOAT -DTX392X -DKSEG2IOBUFSIZE="0x8000000" -DDEBUG -DMSGBUFSIZE="0xfffe" -D__NO_SOFT_SERIAL_INTERRUPT -DSERIALCONSSLOT="0" -DMAXUSERS=8 -D_KERNEL -D_KERNEL_OPT -Dhpcmips -c /home/fun/mips-cache/sys/arch/hpcmips/compile/TX3922/../../../../arch/mips/mips/cache_r3k_subr.S
/home/fun/mips-cache/sys/arch/hpcmips/compile/TX3922/../../../../arch/mips/mips/cache_r3k_subr.S: Assembler messages:
/home/fun/mips-cache/sys/arch/hpcmips/compile/TX3922/../../../../arch/mips/mips/cache_r3k_subr.S:125: Error: absolute expression required `li'
/home/fun/mips-cache/sys/arch/hpcmips/compile/TX3922/../../../../arch/mips/mips/cache_r3k_subr.S:136: Error: absolute expression required `li'
/home/fun/mips-cache/sys/arch/hpcmips/compile/TX3922/../../../../arch/mips/mips/cache_r3k_subr.S:162: Error: absolute expression required `li'
/home/fun/mips-cache/sys/arch/hpcmips/compile/TX3922/../../../../arch/mips/mips/cache_r3k_subr.S:199: Error: absolute expression required `li'
I modified r3900regs.h like below.
also, cache_tx39* wasn't compiled, mod files.mips.
I succeed kernel compile.
New kernel boot and works well.
I'm doing load test on new kernel. (diskless, NFS boot on ne0)
% pax -rzf bind-9.2.0rc9.tar.gz
% cd bind-9.2.0rc9
% ./configure
is O.K. and now
% make
ing...
--
FUKAUMI Naoki
Index: mips/conf/files.mips
===================================================================
RCS file: /cvsroot/syssrc/sys/arch/mips/conf/files.mips,v
retrieving revision 1.32
diff -u -r1.32 files.mips
--- files.mips 2001/11/14 18:15:19 1.32
+++ files.mips 2001/11/15 07:30:56
@@ -16,6 +16,8 @@
file arch/mips/mips/cache.c
file arch/mips/mips/cache_r3k.c mips1
file arch/mips/mips/cache_r3k_subr.S mips1
+file arch/mips/mips/cache_tx39.c enable_mips_tx3900
+file arch/mips/mips/cache_tx39_subr.S enable_mips_tx3900
file arch/mips/mips/cache_r4k.c mips3
file arch/mips/mips/cache_r5k.c mips3
Index: mips/include/r3900regs.h
===================================================================
RCS file: /cvsroot/syssrc/sys/arch/mips/include/r3900regs.h,v
retrieving revision 1.4
diff -u -r1.4 r3900regs.h
--- r3900regs.h 2000/08/24 05:31:59 1.4
+++ r3900regs.h 2001/11/15 07:30:57
@@ -59,8 +59,8 @@
#undef MIPS1_PARITY_ERR
#undef MIPS1_CACHE_MISS
#undef MIPS1_PARITY_ZERO
-#undef MIPS1_SWAP_CACHES
-#undef MIPS1_ISOL_CACHES
+/* #undef MIPS1_SWAP_CACHES */
+/* #undef MIPS1_ISOL_CACHES */
/*
* [context register]