Skip to content

Commit d7525cd

Browse files
masz-nordickartben
authored andcommitted
soc: riscv_privileged: support soc_reset_hook
Add call to `soc_reset_hook` if `CONFIG_SOC_RESET_HOOK` is enabled. Signed-off-by: Marcin Szymczyk <marcin.szymczyk@nordicsemi.no>
1 parent 8f48758 commit d7525cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

soc/common/riscv-privileged/vector.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ SECTION_FUNC(vectors, __start)
2727

2828
.option norvc;
2929

30+
#if defined(CONFIG_SOC_RESET_HOOK)
31+
call soc_reset_hook
32+
#endif
33+
3034
#if defined(CONFIG_RISCV_VECTORED_MODE)
3135
#if defined(CONFIG_RISCV_HAS_CLIC)
3236

0 commit comments

Comments
 (0)