Naked IRQ #121
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/artiq-zynq#121
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "pca006132/artiq-zynq:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Addressing M-Labs/zynq-rs#73.
This fixes the compiler warnings by using only asm in the naked IRQ handler, and jump to our actual handler for IRQs.
It seems that the error introduced previously is due to EHABI expecting our non-naked handler to have a caller, and tries to unwind the stack, which causes interesting interrupts. (probably, I did not really dig into which line in the libunwind causes the problem, as I still don't know how to attach to a running core1 with openocd)
@ -27,0 +43,4 @@
// save the SP and set it back after exiting IRQ
// exception unwinding expect to unwind from this function, as this is not the entrance
// function, maybe to IRQ which cannot further unwind...
// if we set the SP to __stack1_start, interesting interrupts would be triggered when
Interrupts? Or CPU exceptions?
CPU exceptions, maybe I should change the wording.
9eb6d54a7c
tobe01fbd943