We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d80869 commit ca1b140Copy full SHA for ca1b140
crates/core_arch/src/arm_shared/barrier/cp15.rs
@@ -11,7 +11,8 @@ impl super::super::sealed::Dmb for SY {
11
#[inline(always)]
12
unsafe fn __dmb(&self) {
13
asm!(
14
- "mcr p15, 0, r0, c7, c10, 5",
+ "mcr p15, 0, {}, c7, c10, 5",
15
+ in(reg) 0_u32,
16
options(preserves_flags, nostack)
17
)
18
}
@@ -21,7 +22,8 @@ impl super::super::sealed::Dsb for SY {
21
22
23
unsafe fn __dsb(&self) {
24
- "mcr p15, 0, r0, c7, c10, 4",
25
+ "mcr p15, 0, {}, c7, c10, 4",
26
27
28
29
@@ -31,7 +33,8 @@ impl super::super::sealed::Isb for SY {
31
33
32
34
unsafe fn __isb(&self) {
35
- "mcr p15, 0, r0, c7, c5, 4",
36
+ "mcr p15, 0, {}, c7, c5, 4",
37
38
39
40
0 commit comments