Skip to content

Commit 5ec0518

Browse files
committed
Add SEV assembly instruction
1 parent 3207cd8 commit 5ec0518

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/asm.rs

+11
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,17 @@ pub fn wfi() {
4747
}
4848
}
4949

50+
/// Send Event
51+
#[inline]
52+
pub fn sev() {
53+
match () {
54+
#[cfg(target_arch = "arm")]
55+
() => unsafe { asm!("sev" :::: "volatile") },
56+
#[cfg(not(target_arch = "arm"))]
57+
() => unimplemented!(),
58+
}
59+
}
60+
5061
/// Instruction Synchronization Barrier
5162
///
5263
/// Flushes the pipeline in the processor, so that all instructions following the `ISB` are fetched

0 commit comments

Comments
 (0)