aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/export.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/export.rs b/src/export.rs
index 0358991..42f3fe2 100644
--- a/src/export.rs
+++ b/src/export.rs
@@ -339,3 +339,13 @@ pub const fn create_mask<const N: usize>(list_of_shifts: [u32; N]) -> u32 {
mask
}
+
+#[cfg(not(armv6m))]
+pub const fn v6_panic() {
+ // For non-v6 all is fine
+}
+
+#[cfg(armv6m)]
+pub const fn v6_panic() {
+ panic!("Exceptions with shared resources are not allowed when compiling for thumbv6. Use local resources or `#[lock_free]` shared resources");
+}