expand stack alignment docs
This commit is contained in:
parent
c91c8cc6c3
commit
63c604e336
@ -66,7 +66,7 @@ macro_rules! interrupt_handler {
|
|||||||
concat!("movtne r1, :upper16:", stringify!($stack1)),
|
concat!("movtne r1, :upper16:", stringify!($stack1)),
|
||||||
"mov r0, sp",
|
"mov r0, sp",
|
||||||
"mov sp, r1",
|
"mov sp, r1",
|
||||||
"push {{r0, r1}}", // for stack alignment
|
"push {{r0, r1}}", // 2 registers are pushed to maintain 8 byte stack alignment
|
||||||
concat!("bl ", stringify!($name2)),
|
concat!("bl ", stringify!($name2)),
|
||||||
"pop {{r0, r1}}",
|
"pop {{r0, r1}}",
|
||||||
"mov sp, r0",
|
"mov sp, r0",
|
||||||
|
Loading…
Reference in New Issue
Block a user