mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
cache: add ALLOC_CACHE_ALIGN_BUFFER macro
This macro is used to allocate cache line size aligned stack buffers for use with DMA hardware. Signed-off-by: Anton Staaf <robotboy@chromium.org> Cc: Lukasz Majewski <l.majewski@samsung.com> Cc: Kyungmin Park <kyungmin.park@samsung.com> Cc: Mike Frysinger <vapier@gentoo.org> Cc: Aneesh V <aneesh@ti.com> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net> Cc: Wolfgang Denk <wd@denx.de>
This commit is contained in:
committed by
Wolfgang Denk
parent
d47031e687
commit
46a6d51c82
@@ -40,6 +40,8 @@ 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
|
||||
|
Reference in New Issue
Block a user