File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 20
20
* `zephyr,memory-region` compatible DT node with nodelabel `mcuboot_s2ram`.
21
21
*/
22
22
__attribute__((section (DT_PROP (DT_NODELABEL (mcuboot_s2ram ), zephyr_memory_region ))))
23
- struct mcuboot_resume_s _mcuboot_resume ;
23
+ volatile struct mcuboot_resume_s _mcuboot_resume ;
24
24
#else
25
25
#error "mcuboot resume support section not defined in dts"
26
26
#endif
27
27
28
+ #define FIXED_PARTITION_ADDR (node_label ) \
29
+ (DT_REG_ADDR(DT_NODELABEL(node_label)) + \
30
+ COND_CODE_0(DT_FIXED_PARTITION_EXISTS(DT_NODELABEL(node_label)), (0), \
31
+ (DT_REG_ADDR(DT_GPARENT(DT_NODELABEL(node_label))))))
32
+
33
+
28
34
int soc_s2ram_suspend (pm_s2ram_system_off_fn_t system_off )
29
35
{
30
36
(void )(system_off );
@@ -61,7 +67,7 @@ bool pm_s2ram_mark_check_and_clear(void)
61
67
62
68
// s2ram boot
63
69
struct arm_vector_table * vt ;
64
- vt = (struct arm_vector_table * )(FIXED_PARTITION_OFFSET (slot0_partition ) + 0x800 );
70
+ vt = (struct arm_vector_table * )(FIXED_PARTITION_ADDR (slot0_partition ) + 0x800 );
65
71
66
72
// Jump to application
67
73
__asm__ volatile (
You can’t perform that action at this time.
0 commit comments