Skip to content

Commit 1261653

Browse files
Merge #311
311: Duplicate compiler fences around barrier instrs r=adamgreig a=jonas-schievink This should fix #308 Co-authored-by: Jonas Schievink <[email protected]>
2 parents dafbc4e + 5bed907 commit 1261653

15 files changed

+3
-0
lines changed

asm/inline.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,21 @@ pub unsafe fn __delay(cyc: u32) {
6464

6565
#[inline(always)]
6666
pub unsafe fn __dmb() {
67+
compiler_fence(Ordering::SeqCst);
6768
asm!("dmb");
6869
compiler_fence(Ordering::SeqCst);
6970
}
7071

7172
#[inline(always)]
7273
pub unsafe fn __dsb() {
74+
compiler_fence(Ordering::SeqCst);
7375
asm!("dsb");
7476
compiler_fence(Ordering::SeqCst);
7577
}
7678

7779
#[inline(always)]
7880
pub unsafe fn __isb() {
81+
compiler_fence(Ordering::SeqCst);
7982
asm!("isb");
8083
compiler_fence(Ordering::SeqCst);
8184
}

bin/thumbv6m-none-eabi-lto.a

152 Bytes
Binary file not shown.

bin/thumbv6m-none-eabi.a

268 Bytes
Binary file not shown.

bin/thumbv7em-none-eabi-lto.a

116 Bytes
Binary file not shown.

bin/thumbv7em-none-eabi.a

272 Bytes
Binary file not shown.

bin/thumbv7em-none-eabihf-lto.a

120 Bytes
Binary file not shown.

bin/thumbv7em-none-eabihf.a

272 Bytes
Binary file not shown.

bin/thumbv7m-none-eabi-lto.a

120 Bytes
Binary file not shown.

bin/thumbv7m-none-eabi.a

272 Bytes
Binary file not shown.

bin/thumbv8m.base-none-eabi-lto.a

160 Bytes
Binary file not shown.

bin/thumbv8m.base-none-eabi.a

268 Bytes
Binary file not shown.

bin/thumbv8m.main-none-eabi-lto.a

120 Bytes
Binary file not shown.

bin/thumbv8m.main-none-eabi.a

272 Bytes
Binary file not shown.

bin/thumbv8m.main-none-eabihf-lto.a

132 Bytes
Binary file not shown.

bin/thumbv8m.main-none-eabihf.a

272 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)