aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/src/lib.rs
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2018-04-24 20:50:13 +0200
committerGravatar Jorge Aparicio <jorge@japaric.io> 2018-04-24 20:50:13 +0200
commit9976eb18cfe753dd388504c7ef54fb0de6a56a02 (patch)
treee8909d795f91d7f4bbf222536cd61ea9a8a4939d /cortex-m-rt/src/lib.rs
parent45803fac793c65539fa11a11a6e5f475b9058b38 (diff)
downloadcortex-m-9976eb18cfe753dd388504c7ef54fb0de6a56a02.tar.gz
cortex-m-9976eb18cfe753dd388504c7ef54fb0de6a56a02.tar.zst
cortex-m-9976eb18cfe753dd388504c7ef54fb0de6a56a02.zip
fix typo in export name
Diffstat (limited to 'cortex-m-rt/src/lib.rs')
-rw-r--r--cortex-m-rt/src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/cortex-m-rt/src/lib.rs b/cortex-m-rt/src/lib.rs
index f2a7929..fe2156f 100644
--- a/cortex-m-rt/src/lib.rs
+++ b/cortex-m-rt/src/lib.rs
@@ -182,9 +182,10 @@ macro_rules! exception {
f()
}
};
+
(HardFault, $path:path) => {
#[allow(non_snake_case)]
- #[export_name = "HardFaultr"]
+ #[export_name = "HardFault"]
pub unsafe extern "C" fn __impl_HardFault() {
// XXX should we really prevent this handler from returning?
// validate the signature of the user provided handler
@@ -193,6 +194,7 @@ macro_rules! exception {
f()
}
};
+
// NOTE Unfortunately, this will end up leaking `$exception` into the function call namespace.
// But the damage is somewhat reduced by having `$exception` not being a `snake_case` function.
($ExceptionName:ident, $path:path) => {