[Gcl-devel] Re: Flushing the d-cache (was Re: BFD relocations)
Philip Blundell
pb@nexus.co.uk
Fri Jun 14 12:34:00 GMT 2002
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.
More information about the Binutils
mailing list