Skip to content

Commit

Permalink
Merge #119
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
bors[bot] and japaric committed Sep 17, 2018
2 parents 27501f8 + 3498c74 commit 9aaea56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cortex-m-rt/macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ pub fn exception(args: TokenStream, input: TokenStream) -> TokenStream {
quote!(
#[export_name = #ident_s]
#(#attrs)*
pub fn #hash() {
pub extern "C" fn #hash() {
extern crate cortex_m_rt;

// check that this exception actually exists
Expand Down

0 comments on commit 9aaea56

Please sign in to comment.