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)


On Fri, 2002-06-14 at 20:21, Camm Maguire wrote:
> I still see this behavior even if all attempts to flush the data cache
> are removed.  Makes me think that the swi instruction is no working.
> Are there alignment requirements on the arguments?  Why aren't
> a1,a2,a3 shown in the assembly?  I've included the CLEAR_CACHE code
> and its assembly below as well.

Hmm, right, your asm() statement has a bug.  Try this one instead.

 __asm __volatile ("swi 0x9f0002	@ sys_cacheflush"	\
		    : "=r" (_beg)				\
		    : "0" (_beg), "r" (_end), "r"(_flg));	\

p.


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