Mercurial > nand-ecoscentric
diff packages/hal/arm/cma230/current/include/hal_cache.h @ 143:6b5f480c6929 ecos-sw-2000-12-08
Merge from eCos master repository on 2000-12-08-02:09:36-GMT
| author | jlarmour |
|---|---|
| date | Fri, 08 Dec 2000 03:30:06 +0000 |
| parents | bf00f99aec69 |
| children | ac086aa3217e |
line wrap: on
line diff
--- a/packages/hal/arm/cma230/current/include/hal_cache.h +++ b/packages/hal/arm/cma230/current/include/hal_cache.h @@ -126,10 +126,15 @@ // Invalidate the entire cache // mcr MMU_CP,0,r1,MMU_InvalidateCache,c0 -#define HAL_UCACHE_INVALIDATE_ALL() \ -{ \ - asm volatile ("mcr p15,0,r1,c7,c0,0;" ); \ - \ +#define HAL_UCACHE_INVALIDATE_ALL() \ +{ \ + asm volatile ( \ + "mov r1,#0;" \ + "mcr p15,0,r1,c7,c0,0;" \ + : \ + : \ + : "r1","memory" /* Clobber list */ \ + ); \ } // Synchronize the contents of the cache with memory.
