diff --git a/uboot-mtk-20220606/boot/image-fit.c b/uboot-mtk-20220606/boot/image-fit.c index dfcffb2e0..c6bd719fa 100644 --- a/uboot-mtk-20220606/boot/image-fit.c +++ b/uboot-mtk-20220606/boot/image-fit.c @@ -1273,8 +1273,7 @@ int calculate_hash(const void *data, int data_len, const char *name, static int fit_image_check_hash(const void *fit, int noffset, const void *data, size_t size, char **err_msgp) { - DEFINE_ALIGN_BUFFER(uint8_t, value, FIT_MAX_HASH_LEN, - ARCH_DMA_MINALIGN); + ALLOC_CACHE_ALIGN_BUFFER(uint8_t, value, FIT_MAX_HASH_LEN); int value_len; const char *algo; uint8_t *fit_value; diff --git a/uboot-mtk-20220606/tools/mkimage.h b/uboot-mtk-20220606/tools/mkimage.h index 7652c8b00..f5ca65e2e 100644 --- a/uboot-mtk-20220606/tools/mkimage.h +++ b/uboot-mtk-20220606/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