Skip to content

Commit a63a3a9

Browse files
committed
fixup! Do not set STKALIGN on cortexm7_r0p1
1 parent b04a121 commit a63a3a9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/map/reg/scb.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,11 @@ reg! {
129129
traits => { RReg WReg };
130130
fields => {
131131
/// Force exception stacking start in double word aligned address.
132+
#[cfg(not(cortexm_core = "cortexm_r0p1"))]
132133
STKALIGN => { offset => 9; width => 1; traits => { RRRegField WWRegField } };
134+
/// Force exception stacking start in double word aligned address.
135+
#[cfg(cortexm_core = "cortexm_r0p1")]
136+
STKALIGN => { offset => 9; width => 1; traits => { RRRegField } };
133137
/// Ignore data bus fault during HardFault and NMI handlers.
134138
BFHFNMIGN => { offset => 8; width => 1; traits => { RRRegField WWRegField } };
135139
/// Trap on divide by 0.

0 commit comments

Comments
 (0)