@@ -221,6 +221,10 @@ static uint32_t s_jrIndex2 = 0; /*!< Current index in the input
221
221
static caam_job_ring_interface_t * s_jr3 = NULL ; /*!< Pointer to job ring interface 3. */
222
222
static uint32_t s_jrIndex3 = 0 ; /*!< Current index in the input job ring 3. */
223
223
224
+ AT_NONCACHEABLE_SECTION (static caam_rng_config_t rngConfig );
225
+ AT_NONCACHEABLE_SECTION (static caam_desc_rng_t rngGenSeckey );
226
+ AT_NONCACHEABLE_SECTION (static caam_desc_rng_t rngInstantiate );
227
+ AT_NONCACHEABLE_SECTION (static caam_desc_rng_t descBuf );
224
228
/*******************************************************************************
225
229
* Code
226
230
******************************************************************************/
@@ -1842,7 +1846,6 @@ status_t CAAM_Init(CAAM_Type *base, const caam_config_t *config)
1842
1846
* for FIFO STORE command to be able to store Key register as Black key
1843
1847
* for example during AES XCBC-MAC context switch (need to store derived key K1 to memory)
1844
1848
*/
1845
- caam_rng_config_t rngConfig ;
1846
1849
(void )CAAM_RNG_GetDefaultConfig (& rngConfig );
1847
1850
1848
1851
/* reset RNG */
@@ -4444,7 +4447,6 @@ status_t CAAM_RNG_Init(CAAM_Type *base,
4444
4447
status_t status ;
4445
4448
4446
4449
/* create job descriptor */
4447
- caam_desc_rng_t rngInstantiate = {0 };
4448
4450
rngInstantiate [0 ] = 0xB0800006u ;
4449
4451
rngInstantiate [1 ] = 0x12200020u ; /* LOAD 32 bytes of to Class 1 Context Register. Offset 0 bytes. */
4450
4452
rngInstantiate [2 ] = (uint32_t )ADD_OFFSET ((uint32_t )config -> personalString );
@@ -4540,7 +4542,6 @@ status_t CAAM_RNG_GenerateSecureKey(CAAM_Type *base, caam_handle_t *handle, caam
4540
4542
status_t status ;
4541
4543
4542
4544
/* create job descriptor */
4543
- caam_desc_rng_t rngGenSeckey = {0 };
4544
4545
rngGenSeckey [0 ] = 0xB0800004u ; /* HEADER */
4545
4546
rngGenSeckey [1 ] = 0x12200020u ; /* LOAD 32 bytes of to Class 1 Context Register. Offset 0 bytes. */
4546
4547
rngGenSeckey [2 ] = ADD_OFFSET ((uint32_t )additionalEntropy );
@@ -4647,7 +4648,6 @@ status_t CAAM_RNG_GetRandomData(CAAM_Type *base,
4647
4648
caam_rng_generic256_t additionalEntropy )
4648
4649
{
4649
4650
status_t status ;
4650
- caam_desc_rng_t descBuf ;
4651
4651
4652
4652
do
4653
4653
{
0 commit comments