Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions coresimd/arm/cmsis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,3 +327,14 @@ pub unsafe fn __DSB() {
pub unsafe fn __DMB() {
asm!("dmb 0xF" : : : "memory" : "volatile");
}

/// Breakpoint
///
/// Causes the processor to enter Debug state. Debug tools can use this to investigate system state
/// when the instruction at a particular address is reached.
#[inline]
#[target_feature(enable = "mclass")]
#[cfg_attr(test, assert_instr(bkpt))]
pub unsafe fn __BKPT(value: u8) {
asm!("bkpt $0" : : "i"(value) : : "volatile")
}