This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Cache init for MIPS 4kc
- From: "shuishuila" <shuishuila at hotmail dot com>
- To: ecos-discuss <ecos-discuss at sources dot redhat dot com>
- Date: Fri, 19 Mar 2004 22:29:9 +0800
- Subject: [ECOS] Cache init for MIPS 4kc
Hi, ecos-discuss,
I have success port Redboot to a custom MIPS 4kc,
but till now, cache still no function. When I turn on cache
in hal_c_cache_init, sys halt at jmp from kseg1 to kseg0.
// enable cached KSEG0
asm volatile("mfc0 %0,$16;" : "=r"(val));
val &= ~3;
asm volatile("mtc0 %0,$16;" : : "r"(val));
I change val &= ~3 to val |= 3 no work either. Anyone some advice?
Another question is how to use Redboot to run test program?
I use network but can't connect to target, how to set tcp/ip port of target?
Is it 9000?
Regards,
shuishuila
shuishuila@hotmail.com
2004-03-19
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss