]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
fix(nxp-drivers): fix sd secure boot failure
authorPankaj Gupta <pankaj.gupta@nxp.com>
Sun, 26 Jun 2022 11:01:10 +0000 (16:31 +0530)
committerJiafei Pan <Jiafei.Pan@nxp.com>
Wed, 23 Nov 2022 01:17:48 +0000 (09:17 +0800)
secure-boot: fix for sd boot mode failure:
- Array for ROT Pub key hash is not cache aligned.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: I7d1c1115066dd5323399f14b5c3667a1355d5671

drivers/nxp/auth/csf_hdr_parser/csf_hdr_parser.c

index b878082aeeecca2afa9f089cec78a15473eae485..4f31c6e356a225cd46324f78833024ed218b6936 100644 (file)
@@ -38,7 +38,7 @@ static const uint8_t barker_code[CSF_BARKER_LEN] = { 0x68, 0x39, 0x27, 0x81 };
 
 /* Flag to indicate if values are there in rotpk_hash_table */
 bool rotpk_not_dpld =  true;
-uint8_t rotpk_hash_table[MAX_KEY_ENTRIES][SHA256_BYTES];
+uint8_t rotpk_hash_table[MAX_KEY_ENTRIES][SHA256_BYTES] __aligned(CACHE_WRITEBACK_GRANULE);
 uint32_t num_rotpk_hash_entries;
 
 /*