blob: 7641acfb5249e6d0ae1ed223a9476ab4eb764624 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
The `C-cmse-nonsecure-call` ABI can only be used with function pointers.
Erroneous code example:
```compile_fail,E0781
#![feature(abi_c_cmse_nonsecure_call)]
pub extern "C-cmse-nonsecure-call" fn test() {}
```
The `C-cmse-nonsecure-call` ABI should be used by casting function pointers to
specific addresses.
|