aboutsummaryrefslogtreecommitdiff
path: root/tools/mkimage.h
diff options
context:
space:
mode:
authorJoel Stanley2022-06-20 16:31:17 +0930
committerTom Rini2022-07-01 16:01:25 -0400
commitc5e2442033d9afe67b1913e192b0eafa74eef856 (patch)
tree4bf4fe415bec0ff55e76cf20a63eecca7e37d6a1 /tools/mkimage.h
parent975918f6a14374f21f094ed5f5262e959190a9d2 (diff)
image: fit: Use stack allocation macro
The documentation above the DEFINE_ALIGN_BUFFER says it's for use outside functions, but we're inside one. Instead use ALLOC_CACHE_ALIGN_BUFFER, the stack based macro, which also includes the cache alignment. Fixes: b583348ca8c8 ("image: fit: Align hash output buffers") Signed-off-by: Joel Stanley <joel@jms.id.au> Tested-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com> Reviewed-by: Sean Anderson <sean.anderson@seco.com>
Diffstat (limited to 'tools/mkimage.h')
-rw-r--r--tools/mkimage.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/mkimage.h b/tools/mkimage.h
index 7652c8b001c..f5ca65e2edf 100644
--- a/tools/mkimage.h
+++ b/tools/mkimage.h
@@ -41,8 +41,7 @@ static inline ulong map_to_sysmem(void *ptr)
return (ulong)(uintptr_t)ptr;
}
-#define ARCH_DMA_MINALIGN 1
-#define DEFINE_ALIGN_BUFFER(type, name, size, alugn) type name[size]
+#define ALLOC_CACHE_ALIGN_BUFFER(type, name, size) type name[size]
#define MKIMAGE_TMPFILE_SUFFIX ".tmp"
#define MKIMAGE_MAX_TMPFILE_LEN 256