15
15
#include "bootutil/fault_injection_hardening.h"
16
16
17
17
#if DT_NODE_EXISTS (DT_NODELABEL (mcuboot_s2ram )) && \
18
- DT_NODE_HAS_COMPAT (DT_NODELABEL (mcuboot_s2ram ), zephyr_memory_region )
18
+ DT_NODE_HAS_COMPAT (DT_NODELABEL (mcuboot_s2ram ), zephyr_memory_region )
19
19
/* Linker section name is given by `zephyr,memory-region` property of
20
20
* `zephyr,memory-region` compatible DT node with nodelabel `mcuboot_s2ram`.
21
21
*/
@@ -26,20 +26,20 @@ volatile struct mcuboot_resume_s mcuboot_resume;
26
26
#endif
27
27
28
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), \
29
+ (DT_REG_ADDR(DT_NODELABEL(node_label)) + \
30
+ COND_CODE_0(DT_FIXED_PARTITION_EXISTS(DT_NODELABEL(node_label)), (0), \
31
31
(DT_REG_ADDR(DT_GPARENT(DT_NODELABEL(node_label))))))
32
32
33
33
34
34
int soc_s2ram_suspend (pm_s2ram_system_off_fn_t system_off )
35
35
{
36
- (void )(system_off );
37
- return -1 ;
36
+ (void )(system_off );
37
+ return -1 ;
38
38
}
39
39
40
40
void pm_s2ram_mark_set (void )
41
41
{
42
- /* empty */
42
+ /* empty */
43
43
}
44
44
45
45
struct arm_vector_table {
@@ -54,7 +54,7 @@ struct arm_vector_table {
54
54
55
55
bool pm_s2ram_mark_check_and_clear (void )
56
56
{
57
- uint32_t reset_reason = nrf_resetinfo_resetreas_local_get (NRF_RESETINFO );
57
+ uint32_t reset_reason = nrf_resetinfo_resetreas_local_get (NRF_RESETINFO );
58
58
59
59
if (reset_reason != NRF_RESETINFO_RESETREAS_LOCAL_UNRETAINED_MASK ) {
60
60
/* Normal boot */
@@ -70,12 +70,12 @@ bool pm_s2ram_mark_check_and_clear(void)
70
70
goto resume_failed ;
71
71
}
72
72
73
- /* s2ram boot */
73
+ /* s2ram boot */
74
74
struct arm_vector_table * vt ;
75
75
vt = (struct arm_vector_table * )
76
76
(FIXED_PARTITION_ADDR (slot0_partition ) + APP_EXE_START_OFFSET );
77
77
78
- /* Jump to application */
78
+ /* Jump to application */
79
79
__asm__ volatile (
80
80
/* vt->reset -> r0 */
81
81
" mov r0, %0\n"
@@ -93,5 +93,5 @@ bool pm_s2ram_mark_check_and_clear(void)
93
93
resume_failed :
94
94
FIH_PANIC ;
95
95
96
- return true;
96
+ return true;
97
97
}
0 commit comments