@@ -221,6 +221,10 @@ static uint32_t s_jrIndex2 = 0; /*!< Current index in the input
221221static caam_job_ring_interface_t * s_jr3 = NULL ; /*!< Pointer to job ring interface 3. */
222222static uint32_t s_jrIndex3 = 0 ; /*!< Current index in the input job ring 3. */
223223
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 );
224228/*******************************************************************************
225229 * Code
226230 ******************************************************************************/
@@ -1842,7 +1846,6 @@ status_t CAAM_Init(CAAM_Type *base, const caam_config_t *config)
18421846 * for FIFO STORE command to be able to store Key register as Black key
18431847 * for example during AES XCBC-MAC context switch (need to store derived key K1 to memory)
18441848 */
1845- caam_rng_config_t rngConfig ;
18461849 (void )CAAM_RNG_GetDefaultConfig (& rngConfig );
18471850
18481851 /* reset RNG */
@@ -4444,7 +4447,6 @@ status_t CAAM_RNG_Init(CAAM_Type *base,
44444447 status_t status ;
44454448
44464449 /* create job descriptor */
4447- caam_desc_rng_t rngInstantiate = {0 };
44484450 rngInstantiate [0 ] = 0xB0800006u ;
44494451 rngInstantiate [1 ] = 0x12200020u ; /* LOAD 32 bytes of to Class 1 Context Register. Offset 0 bytes. */
44504452 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
45404542 status_t status ;
45414543
45424544 /* create job descriptor */
4543- caam_desc_rng_t rngGenSeckey = {0 };
45444545 rngGenSeckey [0 ] = 0xB0800004u ; /* HEADER */
45454546 rngGenSeckey [1 ] = 0x12200020u ; /* LOAD 32 bytes of to Class 1 Context Register. Offset 0 bytes. */
45464547 rngGenSeckey [2 ] = ADD_OFFSET ((uint32_t )additionalEntropy );
@@ -4647,7 +4648,6 @@ status_t CAAM_RNG_GetRandomData(CAAM_Type *base,
46474648 caam_rng_generic256_t additionalEntropy )
46484649{
46494650 status_t status ;
4650- caam_desc_rng_t descBuf ;
46514651
46524652 do
46534653 {
0 commit comments