We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1b1751 commit d80fc81Copy full SHA for d80fc81
core/system/src/main.c
@@ -76,11 +76,15 @@ UVISOR_NAKED void main_entry(uint32_t caller)
76
"it eq\n"
77
"popeq {pc}\n"
78
79
- /* Set the MSP. Since we are changing stacks we need to pop and re-push
+ /* Set the MSP and MSPLIM. Since we are changing stacks we need to pop and re-push
80
* the lr value. */
81
"pop {r0}\n"
82
"ldr r1, =__uvisor_stack_top__\n"
83
"msr MSP, r1\n"
84
+#if defined(ARCH_CORE_ARMv8M)
85
+ "ldr r1, =__uvisor_stack_start__\n"
86
+ "msr MSPLIM, r1\n"
87
+#endif
88
"push {r0}\n"
89
90
/* First initialization stage. */
0 commit comments