X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=doc%2FREADME.arm-caches;h=dbb6190b95c06ffcdc8c126cc0f361a8e1b717c6;hb=8e309bb50db107acb1db836c03a027379e03ab7a;hp=cd2b4587c2856175a047aab91bfd6d43bab0f9a0;hpb=cba4b1809f043bf85c806e5a4e342f62bd5ded45;p=karo-tx-uboot.git diff --git a/doc/README.arm-caches b/doc/README.arm-caches index cd2b4587c2..dbb6190b95 100644 --- a/doc/README.arm-caches +++ b/doc/README.arm-caches @@ -40,12 +40,14 @@ Buffer Requirements: - If the buffer is not cache-line aligned invalidation will be restricted to the aligned part. That is, one cache-line at the respective boundary may be left out while doing invalidation. +- A suitable buffer can be alloced on the stack using the + ALLOC_CACHE_ALIGN_BUFFER macro. Cleanup Before Linux: - cleanup_before_linux() should flush the D-cache, invalidate I-cache, and disable MMU and caches. - The following sequence is advisable while disabling d-cache: - 1. disable_dcache() - flushes and disables d-cache + 1. dcache_disable() - flushes and disables d-cache 2. invalidate_dcache_all() - invalid any entry that came to the cache in the short period after the cache was flushed but before the cache got disabled.