Skip to content

Commit 1cb4c09

Browse files
committed
[nrf noup] soc/nordic/nrf54h/pm_s2ram: volatile mcuboot magic
Made _mcuboot_resume struct volatile. to be squashed. Signed-off-by: Andrzej Puzdrowski <[email protected]>
1 parent 123e125 commit 1cb4c09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soc/nordic/nrf54h/pm_s2ram.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ static void fpu_restore(_fpu_context_t *backup)
225225
* `zephyr,memory-region` compatible DT node with nodelabel `mcuboot_s2ram`.
226226
*/
227227
__attribute__((section(DT_PROP(DT_NODELABEL(mcuboot_s2ram), zephyr_memory_region))))
228-
struct mcuboot_resume_s _mcuboot_resume;
228+
volatile struct mcuboot_resume_s _mcuboot_resume;
229229

230230
#define SET_MCUBOOT_RESUME_MAGIC() _mcuboot_resume.magic = MCUBOOT_S2RAM_RESUME_MAGIC
231231
#else

0 commit comments

Comments
 (0)