From 46a6d51c827a12723e7191128fb7aab42c8f5c09 Mon Sep 17 00:00:00 2001 From: Anton staaf Date: Wed, 12 Oct 2011 13:55:59 +0000 Subject: 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 Cc: Lukasz Majewski Cc: Kyungmin Park Cc: Mike Frysinger Cc: Aneesh V Cc: Albert ARIBAUD Cc: Wolfgang Denk --- doc/README.arm-caches | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/README.arm-caches') diff --git a/doc/README.arm-caches b/doc/README.arm-caches index cd2b458..f6a52e3 100644 --- a/doc/README.arm-caches +++ b/doc/README.arm-caches @@ -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 -- cgit v1.1