aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/asm.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/asm.rs b/src/asm.rs
index aab772e..9a2d481 100644
--- a/src/asm.rs
+++ b/src/asm.rs
@@ -47,6 +47,17 @@ pub fn wfi() {
}
}
+/// Send Event
+#[inline]
+pub fn sev() {
+ match () {
+ #[cfg(target_arch = "arm")]
+ () => unsafe { asm!("sev" :::: "volatile") },
+ #[cfg(not(target_arch = "arm"))]
+ () => unimplemented!(),
+ }
+}
+
/// Instruction Synchronization Barrier
///
/// Flushes the pipeline in the processor, so that all instructions following the `ISB` are fetched