cmd: crypto: make foo_data[] cacheline aligned

Crypto-v1 needs flush_dcache() for SHA, this avoids the warning
message "CACHE: Misaligned operation at range ...".

Change-Id: Ie766af60db83ec1f290103c2059863fa50d0a0ad
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen 2019-11-20 16:26:30 +08:00 committed by Jianhong Chen
parent cc3d674144
commit 27d36fbda0
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@
#include <u-boot/sha256.h>
#include <u-boot/sha512.h>
static u8 foo_data[] = {
__cacheline_aligned static u8 foo_data[] = {
0x52, 0x53, 0x41, 0x4b, 0x00, 0x00, 0x00, 0x00, 0x23, 0x00, 0x00, 0x00,
0xda, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd5, 0xf2, 0xfc, 0xbb,