@@ -25,7 +25,7 @@ BUILD_ASSERT(WRITE_BLOCK_SIZE > 0, "zephyr,flash: write_block_size expected to b
2525struct ipuc_context {
2626 struct zcbor_string component_id ;
2727 uint8_t component_id_buf [IPUC_MEM_COMPONENT_MAX_SIZE ];
28- size_t address ;
28+ uintptr_t address ;
2929 size_t size ;
3030 bool read_access ;
3131};
@@ -282,8 +282,8 @@ static struct device *flash_component_ipuc(struct zcbor_string *component_id,
282282 if (!dry_run ) {
283283 uint8_t cpu_id = 0 ;
284284
285- plat_err = suit_plat_decode_component_id (& ctx -> component_id , & cpu_id ,
286- & ctx -> address , & ctx -> size );
285+ plat_err = suit_plat_decode_component_id (
286+ & ctx -> component_id , & cpu_id , ( intptr_t * ) & ctx -> address , & ctx -> size );
287287 if (plat_err != SUIT_PLAT_SUCCESS ) {
288288 LOG_ERR ("Failed to decode IPUC %d component ID: %d" , i , plat_err );
289289 continue ;
@@ -296,7 +296,7 @@ static struct device *flash_component_ipuc(struct zcbor_string *component_id,
296296 break ;
297297 }
298298
299- LOG_INF ("IPUC for address range (0x%x , 0x%x) created" , ctx -> address ,
299+ LOG_INF ("IPUC for address range (0x%lx , 0x%x) created" , ctx -> address ,
300300 ctx -> size );
301301 }
302302
@@ -403,8 +403,8 @@ static struct device *flash_cache_ipuc(uintptr_t min_address, uintptr_t *ipuc_ad
403403 return NULL ;
404404 }
405405
406- plat_err = suit_plat_decode_component_id (& ctx -> component_id , & cpu_id , & ctx -> address ,
407- & ctx -> size );
406+ plat_err = suit_plat_decode_component_id (& ctx -> component_id , & cpu_id ,
407+ ( intptr_t * ) & ctx -> address , & ctx -> size );
408408 if (plat_err != SUIT_PLAT_SUCCESS ) {
409409 flash_ipuc_release (dev );
410410 return NULL ;
@@ -421,7 +421,7 @@ static struct device *flash_cache_ipuc(uintptr_t min_address, uintptr_t *ipuc_ad
421421 return NULL ;
422422 }
423423
424- LOG_INF ("Cache IPUC at idx %d for address range (0x%x , 0x%x) created" , i_max ,
424+ LOG_INF ("Cache IPUC at idx %d for address range (0x%lx , 0x%x) created" , i_max ,
425425 ctx -> address , ctx -> size );
426426 }
427427
0 commit comments