gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Andreas Schwab
Subject: [Gcl-devel] Re: Flushing the d-cache (was Re: BFD relocations)
Date: Fri, 14 Jun 2002 22:10:04 +0200
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.3.50 (ia64-suse-linux)

Camm Maguire <address@hidden> writes:

|> 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)

The comment from Philip applies here as well: no need for the loop.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]