Skip to content
This repository was archived by the owner on Jan 24, 2022. It is now read-only.

Commit 313cd63

Browse files
committed
make all exception handlers extern "C"
They'll be called by the hardware and must comply to the stable C ABI. Using the Rust ABI in this case was an oversight.
1 parent 581fc95 commit 313cd63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

macros/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ pub fn exception(args: TokenStream, input: TokenStream) -> TokenStream {
418418
quote!(
419419
#[export_name = #ident_s]
420420
#(#attrs)*
421-
pub fn #hash() {
421+
pub extern "C" fn #hash() {
422422
extern crate cortex_m_rt;
423423

424424
// check that this exception actually exists

0 commit comments

Comments
 (0)