Skip to content

Commit 0733572

Browse files
committed
zephyrproject-rtos#20119 Backport for SCR7/9 support
Zephyr release v.3.2.0 has no EARLY initialization level. So the MPU and L1/L2 initialization is moved to PRE_KERNEL_1 level
1 parent b54808d commit 0733572

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

soc/riscv/riscv-privilege/scr7/soc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ static int riscv64_scr7_init(const struct device *arg)
5858
return 0;
5959
}
6060

61-
SYS_INIT(riscv64_scr7_init, EARLY, 0);
61+
SYS_INIT(riscv64_scr7_init, PRE_KERNEL_1, 0);

soc/riscv/riscv-privilege/scr9/soc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ static int riscv64_scr9_init(const struct device *arg)
5858
return 0;
5959
}
6060

61-
SYS_INIT(riscv64_scr9_init, EARLY, 0);
61+
SYS_INIT(riscv64_scr9_init, PRE_KERNEL_1, 0);

0 commit comments

Comments
 (0)