From: 강신규 <cosmos@astonlinux.com>
To: Ralph Metzler <rjkm@convergence.de>
Cc: linux-mips@fnet.fr, linux-mips@oss.sgi.com
Subject: Re: Help me.
Date: Mon, 02 Jul 2001 09:47:56 -0400 [thread overview]
Message-ID: <3B407B8C.C18C839C@astonlinux.com> (raw)
In-Reply-To: 15163.24240.316758.268911@valen.metzler
Ralph Metzler wrote:
> Hi,
>
> =?EUC-KR?B?sK29xbHU?= writes:
> > I am trying to port a linux 2.4 to R3000 based system (LSI LOGIC
> > SC2000).
> > SC2000 have caches. one is Two-way set associative or direct mapped
> > Instruction cache (16K) and another is Direct-mapped data cache(8K).
>
> I also spent one or two weeks with Linux on an SC2000 a while ago
> but had to stop due to other more important projects. I also ran
> into problems with the caching. Without caching I got it to boot
> via NFS. Anyway, at least one mistake is in this part:
>
> > ---------------lsi-cache.S--------------------------------
> >
> > /* void flush_icache(void) */
> > LEAF(flush_icache)
> > .set noreorder
> >
> > la a3, icache_size # 8Kbyte
> > lw t4, 0(a3)
> >
> > mfc0 t7, CP0_STATUS # save SR
> > nop
> > nop
> >
> > and t0, t7, ~ST0_IEC # disable interrupts
> > mtc0 t0, CP0_STATUS
> > nop
> > nop
> >
> > li t3, CBSYS # BBCC configuration register
> > lw t8, 0(t3) # save config. register
> > nop
> >
> > li t0, KSEG0
> > or t4, t4, t0 # end of I-cache
> >
> > move t5, t0
> >
> > 2: la t0, 3f # switch to Kseg1
> > or t0, KSEG1
> > jr t0
> > nop
> >
> > #
> > # flush I-cache set 0
> > #
> > 3:
> > li t0, (CFG_DCEN | CFG_ICEN)
> > or t0, CFG_CMODE_ITEST # I-cache set1 enable
> > # D-cache enable, I-cache set0
> > enable
> > # I-cache software test
> > sw t0, 0(t3)
> > lw zero, 0(t3)
> > addi zero, zero, 1
> >
> > move t0, t5
> > 4: sw zero, (t0)
> > nop
> > lw zero, (t0)
> > addu t0, t6
> > bltu t0, t4, 4b
> > nop
>
> Where does t6 get set?
> This bug already is in the LSI sample code.
> I think they just copied the loop code from the cache invalidation
> functions (where they actually do determine t6 from the cache
> line size) and forgot to adjust it.
>
> Best regards,
> Ralph
>
> --
> /--------------------------------------------------------------------\
> | Dr. Ralph J.K. Metzler | Convergence integrated media |
> |--------------------------------|-----------------------------------|
> | rjkm@convergence.de | http://www.convergence.de/ |
> \--------------------------------------------------------------------/
Thank you.
I modified the bug. but problem is same.
Regards,
Shinkyu.
next prev parent reply other threads:[~2001-07-02 0:45 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-28 21:05 Help me 강신규
2001-06-28 16:43 ` Ralph Metzler
2001-06-29 13:28 ` 강신규
2001-07-02 13:47 ` 강신규 [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-10-31 4:01 help me 곽동원
2003-04-26 4:52 Help me cyberyam
2003-06-10 6:31 Help Me Pham Dinh Hieu
2003-06-10 22:20 George Vieira
2004-05-23 14:51 [Bluez-users] help me Vitaliy
2004-05-23 15:01 ` Marcel Holtmann
2004-05-23 15:20 ` [Bluez-users] " Vitaliy
2004-05-23 15:30 ` Marcel Holtmann
2004-05-23 15:48 ` Vitaliy Pronkin
2004-05-23 16:04 ` Marcel Holtmann
2004-05-23 16:12 ` Vitaliy Pronkin
2004-09-17 13:08 HELP ME Marcel Bogdan
2004-11-29 11:41 Help Me Umar Draz
2004-11-29 12:02 ` DervishD
2005-07-04 10:39 help me umar draz
2005-07-04 10:47 ` Christoph Georgi
2005-07-04 13:45 ` /dev/rob0
2006-03-29 0:19 bash
2006-03-29 1:50 ` John A. Sullivan III
2006-03-29 3:29 ` bash
2006-05-09 9:44 abdul hafeez
2006-11-26 10:01 ahmed nabel
2007-01-04 6:21 Help me Debasree Mallick
2007-01-04 8:26 ` Matthew Palmer
2007-01-05 7:31 ` Debasree Mallick
2007-01-05 7:31 ` Debasree Mallick
2010-07-01 5:01 help me oleg ershov
2010-07-01 5:36 ` Mike Frysinger
2014-09-10 12:02 Help Me Alina Yukov
2019-04-07 23:46 Ms. Heba Oudeh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3B407B8C.C18C839C@astonlinux.com \
--to=cosmos@astonlinux.com \
--cc=linux-mips@fnet.fr \
--cc=linux-mips@oss.sgi.com \
--cc=rjkm@convergence.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.