Re: Flushing the d-cache (was Re: BFD relocations)
- To: Camm Maguire <camm@enhanced.com>
- Cc: Daniel Jacobowitz <drow@mvista.com>, Paul Koning <pkoning@equallogic.com>, binutils@sources.redhat.com, gcl-devel@gnu.org, roman@hodek.net, debian-68k@lists.debian.org, pb@nexus.co.uk, debian-arm@lists.debian.org
- Subject: Re: Flushing the d-cache (was Re: BFD relocations)
- From: Richard Zidlicky <Richard.Zidlicky@stud.informatik.uni-erlangen.de>
- Date: Mon, 17 Jun 2002 00:46:27 +0200
- Message-id: <[🔎] 20020617004627.A3167@linux-m68k.org>
- In-reply-to: <[🔎] 54hek5svsl.fsf_-_@intech19.enhanced.com>; from camm@enhanced.com on Fri, Jun 14, 2002 at 11:51:38AM -0400
- References: <20020604223014.GA7579@nevyn.them.org> <547kldpbu0.fsf@intech19.enhanced.com> <20020605230537.GA4336@nevyn.them.org> <54g001xnnf.fsf@intech19.enhanced.com> <20020606010956.GA7291@nevyn.them.org> <547klbixuk.fsf@intech19.enhanced.com> <15616.47945.929255.781190@pkoning.dev.equallogic.com> <54elfeu5ih.fsf@intech19.enhanced.com> <20020610230608.GA15617@nevyn.them.org> <[🔎] 54hek5svsl.fsf_-_@intech19.enhanced.com>
On Fri, Jun 14, 2002 at 11:51:38AM -0400, Camm Maguire wrote:
>
> m68k:
> #include <asm/cachectl.h>
> #define CLEAR_CACHE do {\
> void *v=memory->cfd.cfd_start,*ve=v+memory->cfd.cfd_size; \
> for (;v<ve;v+=16) \
> sys_cacheflush(v,FLUSH_SCOPE_LINE,FLUSH_CACHE_DATA,16);\
> } while(0)
dunno what exactly you are tryinig to do but this one will not
guarantee data/instruction cache coherency - use FLUSH_CACHE_BOTH
for that.
Richard
--
To UNSUBSCRIBE, email to debian-arm-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: