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 0fe6c4c commit 3acafb3Copy full SHA for 3acafb3
cortex-m/src/asm.rs
@@ -194,7 +194,7 @@ pub unsafe fn semihosting_syscall(nr: u32, arg: u32) -> u32 {
194
/// it, you may wish to set the `PSPLIM` register to guard against this.
195
#[cfg(cortex_m)]
196
#[inline(always)]
197
-pub unsafe fn enter_unprivileged(psp: *const u32, entry: fn() -> !) -> ! {
+pub unsafe fn enter_unprivileged(psp: *const u32, entry: extern "C" fn() -> !) -> ! {
198
unsafe {
199
core::arch::asm!(
200
"mrs {tmp}, CONTROL",
0 commit comments