Skip to content

Commit 00d6faa

Browse files
bors[bot]Nemo157
andcommitted
Merge #86
86: Add SEV assembly instruction r=japaric a=Nemo157 Co-authored-by: Wim Looman <[email protected]>
2 parents 3207cd8 + 5ec0518 commit 00d6faa

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)