Skip to content

Commit 1a601cb

Browse files
committed
Use out instead of lateout for strex in asm! block
The STREX instruction doesn't permits the Rd register to be the same as Rt and Rn, this applies to Cortex-M7 as well to Cortex-M4, and probably others too. Signed-off-by: Jean Pierre Dudey <[email protected]>
1 parent a63a3a9 commit 1a601cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reg/atomic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ macro_rules! atomic_bits {
235235
$strex,
236236
input = in(reg) self,
237237
address = in(reg) address,
238-
status = lateout(reg) status,
238+
status = out(reg) status,
239239
options(nostack, preserves_flags),
240240
);
241241
}

0 commit comments

Comments
 (0)