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 6a46b61 commit ef8164bCopy full SHA for ef8164b
cortex-m/src/asm.rs
@@ -193,14 +193,14 @@ pub unsafe fn semihosting_syscall(nr: u32, arg: u32) -> u32 {
193
/// program - stack overflows are obviously UB. If your processor supports
194
/// it, you may wish to set the `PSPLIM` register to guard against this.
195
#[cfg(cortex_m)]
196
-#[inline(always)]
+//#[inline(always)]
197
pub unsafe fn enter_unprivileged_psp(psp: *const u32, entry: extern "C" fn() -> !) -> ! {
198
unsafe {
199
core::arch::asm!(
200
+ "msr PSP, {psp}",
201
"mrs {tmp}, CONTROL",
202
"orrs {tmp}, {flags}",
203
"msr CONTROL, {tmp}",
- "msr PSP, {psp}",
204
"isb",
205
"bx {ent}",
206
tmp = in(reg) 0,
0 commit comments