forked from M-Labs/zynq-rs
1
0
Fork 0

Compare commits

..

2 Commits

Author SHA1 Message Date
morgan 8d204cf0eb Add core0 interrupt return test 2023-11-14 15:01:37 +08:00
morgan 40b3d2e057 Add interrupt exit support to interrupt_handler
interrupt_handler: preserve registers and load them after $name2 fn
interrupt_handler: allow $name2 fn to return
2023-11-14 15:01:27 +08:00
1 changed files with 1 additions and 1 deletions

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 alginment
"push {{r0, r1}}", // for stack alignment
concat!("bl ", stringify!($name2)),
"pop {{r0, r1}}",
"mov sp, r0",