expand stack alignment docs

This commit is contained in:
morgan 2023-11-20 12:29:31 +08:00
parent c91c8cc6c3
commit 63c604e336

View File

@ -66,7 +66,7 @@ macro_rules! interrupt_handler {
concat!("movtne r1, :upper16:", stringify!($stack1)),
"mov r0, sp",
"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)),
"pop {{r0, r1}}",
"mov sp, r0",