diff options
author | 2022-02-07 02:25:57 +0000 | |
---|---|---|
committer | 2022-02-07 02:25:57 +0000 | |
commit | 8bb2a61d1cc3d2bbfd3dcc7f20fe55e9a1780df0 (patch) | |
tree | 8bed296dfa2c662185cdccc587b9d4a0b0870454 /testsuite/minitest/macros/src/lib.rs | |
parent | 70b4d4c765919e1824667e4975a51dc4e3b6d887 (diff) | |
parent | d6a69feb263bc62faf257a02b18b994fa6b650db (diff) | |
download | cortex-m-8bb2a61d1cc3d2bbfd3dcc7f20fe55e9a1780df0.tar.gz cortex-m-8bb2a61d1cc3d2bbfd3dcc7f20fe55e9a1780df0.tar.zst cortex-m-8bb2a61d1cc3d2bbfd3dcc7f20fe55e9a1780df0.zip |
Merge #421
421: Allow #[naked] attribute on interrupt handlers and pre_init r=thalesfragoso a=adamgreig
Might be useful for `pre_init` especially, now that constrained naked functions are hopefully [on the road to being stable](https://github.com/rust-lang/rust/issues/90957).
`pre_init` and `entry` are called from our `asm.S` via `bl __pre_init` and `bl main`, exception and interrupt handlers are called directly by the CPU; in either case there's no issue with calling a naked function.
Inspired by https://twitter.com/the6p4c/status/1489266955232034817
Co-authored-by: Adam Greig <adam@adamgreig.com>
Diffstat (limited to 'testsuite/minitest/macros/src/lib.rs')
0 files changed, 0 insertions, 0 deletions