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 @@ -1407,7 +1407,7 @@ boot_validated_swap_type(struct boot_loader_state *state,
1407
1407
1408
1408
#ifdef PM_S1_ADDRESS
1409
1409
#ifdef PM_CPUNET_B0N_ADDRESS
1410
- if (reset_addr < PM_CPUNET_B0N_ADDRESS )
1410
+ if (!( reset_addr >= PM_CPUNET_APP_ADDRESS && reset_addr < PM_CPUNET_APP_END_ADDRESS ) )
1411
1411
#endif
1412
1412
{
1413
1413
const struct flash_area * primary_fa ;
@@ -1480,7 +1480,8 @@ boot_validated_swap_type(struct boot_loader_state *state,
1480
1480
* update and indicate to the caller of this function that no update is
1481
1481
* available
1482
1482
*/
1483
- if (upgrade_valid && reset_addr > PM_CPUNET_B0N_ADDRESS ) {
1483
+ if (upgrade_valid && reset_addr >= PM_CPUNET_APP_ADDRESS &&
1484
+ reset_addr < PM_CPUNET_APP_END_ADDRESS ) {
1484
1485
struct image_header * hdr = (struct image_header * )secondary_fa -> fa_off ;
1485
1486
uint32_t vtable_addr = (uint32_t )hdr + hdr -> ih_hdr_size ;
1486
1487
uint32_t * net_core_fw_addr = (uint32_t * )(vtable_addr );
You can’t perform that action at this time.
0 commit comments