Skip to content

Commit 9aaea56

Browse files
bors[bot]japaric
andcommitted
Merge #119
119: make all exception handlers extern "C" r=adamgreig a=japaric 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. r? @rust-embedded/cortex-m (anyone) Co-authored-by: Jorge Aparicio <[email protected]>
2 parents 27501f8 + 3498c74 commit 9aaea56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cortex-m-rt/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)