Skip to content

Commit 5bdc56c

Browse files
committed
Add a new ABI to support cmse_nonsecure_call
This commit adds a new ABI to be selected via `extern "C-cmse-nonsecure-call"` on function pointers in order for the compiler to apply the corresponding cmse_nonsecure_call callsite attribute. For Armv8-M targets supporting TrustZone-M, this will perform a non-secure function call by saving, clearing and calling a non-secure function pointer using the BLXNS instruction. See the page on the unstable book for details. Signed-off-by: Hugues de Valon <[email protected]>
1 parent 02e1fd4 commit 5bdc56c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/abi/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ fn clif_sig_from_fn_abi<'tcx>(
2828
Conv::X86_64SysV => CallConv::SystemV,
2929
Conv::X86_64Win64 => CallConv::WindowsFastcall,
3030
Conv::ArmAapcs
31+
| Conv::CCmseNonSecureCall
3132
| Conv::Msp430Intr
3233
| Conv::PtxKernel
3334
| Conv::X86Fastcall

0 commit comments

Comments
 (0)