From: Daniel Laird <danieljlaird@hotmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] mips cache and relocate_code()
Date: Tue, 23 May 2006 02:59:14 -0700 (PDT) [thread overview]
Message-ID: <4520308.post@talk.nabble.com> (raw)
In-Reply-To: <443F8BD0.5070608@gmail.com>
>Hi, the reason why the cache is not flushed, is that
>mips_cache_lock(stack pointer) (or so) is called before. This locks
>the whole data cache beginning from the stack pointer. Any other
>access to other addresses will not get into dcache, because the dcache
>lines are locked against replacing. See MIPS spec. Unfortunately the
>cache locking don't have to be implemented for MIPS 32 4Kc cpus. So
>the code i think has to be improved. I've implemented a fluch_cache
>routine to avoid the false behaviour, because the bcm47xx in my case
>doesn't support it (as it seems for me). On the other side icache don't
>has to be flushed before relocating, because the start code runs
>uncached from KSEG1.
>So my thoughts :)
>Anton
I too am going to implement a flush_cache routine to solve some issues. Are
you going to feed back your fix for cpu/mips so flush_cache is available to
all or when i get mine working should i feed mine back?
cheers
Dan
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users
--
View this message in context: http://www.nabble.com/mips+cache+and+relocate_code%28%29-t1445438.html#a4520308
Sent from the Uboot - Users forum at Nabble.com.
next prev parent reply other threads:[~2006-05-23 9:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-13 16:27 [U-Boot-Users] mips cache and relocate_code() Burch, John T.
2006-04-14 11:47 ` Anton Wöllert
2006-05-23 9:59 ` Daniel Laird [this message]
2006-05-23 16:25 ` Anton Wöllert
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=4520308.post@talk.nabble.com \
--to=danieljlaird@hotmail.com \
--cc=u-boot@lists.denx.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox