2 Nov 2002 16:30
Re: spontaneous reboot only once after power-up
ITOH Yasufumi <itohy <at> netbsd.org>
2002-11-02 15:30:37 GMT
2002-11-02 15:30:37 GMT
[ port-sh3 added ] I wrote (see http://mail-index.netbsd.org/port-dreamcast/2002/10/29/0000.html for full text): (on SH4 (Dreamcast)) > However, I have a weird problem. > The kernel reboot at the context switching (tsleep(), kthread_create1()), > only once after power-up. > Load the kernel again, and it works without problems. This is a immediate reset without panic message, and I suspect it is a "TLB multiple hit" exception. I happen to try following change and the problem disappear. Here, we are clearing the TLB. The original code clears TLB via address array, and new code does it via data array 1. Why this change is effective? Is this a correct change? Is the true problem elsewhere? I placed the kernels before change: ftp://ftp.netbsd.org/pub/NetBSD/misc/itohy/dreamcast/netbsd.397.gz after change: ftp://ftp.netbsd.org/pub/NetBSD/misc/itohy/dreamcast/netbsd.398.gz Note this is one byte change (modulo change in version numbers). Regards,(Continue reading)
.
I tried some alternatives in sh4_tlb_invalidate_all():
(a) the code of my previous mail (works)
for (e = 0; e < eend; e++) {
RSS Feed