File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1375,7 +1375,7 @@ boot_validated_swap_type(struct boot_loader_state *state,
1375
1375
1376
1376
#ifdef PM_S1_ADDRESS
1377
1377
#ifdef PM_CPUNET_B0N_ADDRESS
1378
- if (reset_addr < PM_CPUNET_B0N_ADDRESS )
1378
+ if (!( reset_addr >= PM_CPUNET_APP_ADDRESS && reset_addr < PM_CPUNET_APP_END_ADDRESS ) )
1379
1379
#endif
1380
1380
{
1381
1381
const struct flash_area * primary_fa ;
@@ -1448,7 +1448,8 @@ boot_validated_swap_type(struct boot_loader_state *state,
1448
1448
* update and indicate to the caller of this function that no update is
1449
1449
* available
1450
1450
*/
1451
- if (upgrade_valid && reset_addr > PM_CPUNET_B0N_ADDRESS ) {
1451
+ if (upgrade_valid && reset_addr >= PM_CPUNET_APP_ADDRESS &&
1452
+ reset_addr < PM_CPUNET_APP_END_ADDRESS ) {
1452
1453
struct image_header * hdr = (struct image_header * )secondary_fa -> fa_off ;
1453
1454
uint32_t vtable_addr = (uint32_t )hdr + hdr -> ih_hdr_size ;
1454
1455
uint32_t * net_core_fw_addr = (uint32_t * )(vtable_addr );
You can’t perform that action at this time.
0 commit comments