@@ -1204,7 +1204,7 @@ static void key_sha3_384(uint8_t key_slot, uint8_t *hash)
12041204 * @param val The 32-bit integer value in little-endian byte order.
12051205 * @return The 32-bit integer value in native byte order.
12061206 */
1207- static inline uint32_t im2n (uint32_t val )
1207+ static inline uint32_t RAMFUNCTION im2n (uint32_t val )
12081208{
12091209#ifdef BIG_ENDIAN_ORDER
12101210 val = (((val & 0x000000FF ) << 24 ) |
@@ -1223,7 +1223,7 @@ static inline uint32_t im2n(uint32_t val)
12231223 * @param image The pointer to the image header.
12241224 * @return The size of the image in bytes.
12251225 */
1226- uint32_t wolfBoot_image_size (uint8_t * image )
1226+ uint32_t RAMFUNCTION wolfBoot_image_size (uint8_t * image )
12271227{
12281228 uint32_t * size = (uint32_t * )(image + sizeof (uint32_t ));
12291229 return im2n (* size );
@@ -1239,7 +1239,7 @@ uint32_t wolfBoot_image_size(uint8_t *image)
12391239 * @param image The pointer to the image address.
12401240 * @return 0 on success, -1 on error.
12411241 */
1242- int wolfBoot_open_image_address (struct wolfBoot_image * img , uint8_t * image )
1242+ int RAMFUNCTION wolfBoot_open_image_address (struct wolfBoot_image * img , uint8_t * image )
12431243{
12441244 uint32_t * magic = (uint32_t * )(image );
12451245 if (* magic != WOLFBOOT_MAGIC ) {
@@ -1315,7 +1315,7 @@ int wolfBoot_get_dts_size(void *dts_addr)
13151315 * @param part The partition ID (PART_BOOT, PART_UPDATE, PART_SWAP, etc.).
13161316 * @return 0 on success, -1 on error.
13171317 */
1318- int wolfBoot_open_image (struct wolfBoot_image * img , uint8_t part )
1318+ int RAMFUNCTION wolfBoot_open_image (struct wolfBoot_image * img , uint8_t part )
13191319{
13201320#ifdef MMU
13211321 int ret ;
0 commit comments