This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Gcl-devel] Re: Flushing the d-cache (was Re: BFD relocations)


Greetings, and thank you all for your suggestions!

m68k now working!  Have so far i386, s390, m68k, powerpc.  Working on
arm,mips.  Haven't started 64bit yet.  As always, any helpful comments
like the below for any remaining (Debian) arches are *most* welcome!

Take care,



Richard Zidlicky <Richard.Zidlicky@stud.informatik.uni-erlangen.de> writes:

> 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
> 
> _______________________________________________
> Gcl-devel mailing list
> Gcl-devel@gnu.org
> http://mail.gnu.org/mailman/listinfo/gcl-devel
> 
> 

-- 
Camm Maguire			     			camm@enhanced.com
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]