Skip to content

Commit

Permalink
Merge #86
Browse files Browse the repository at this point in the history
86: Add SEV assembly instruction r=japaric a=Nemo157



Co-authored-by: Wim Looman <wim.looman@kiwi.ki>
  • Loading branch information
bors[bot] and Nemo157 committed Apr 12, 2018
2 parents 3207cd8 + 5ec0518 commit 00d6faa
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/asm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 00d6faa

Please sign in to comment.