Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22001

Can a fast interrupt handler call a non-fast-interrupt-handler function?

$
0
0

If I have a fast interrupt handler (by adding __attribute__((interrupt("FIQ")))), can I invoke other non-fast-interrupt function inside the handler? For example,

void f() {//...}
void g() {//...}
void handler() __attribute__((interrupt("FIQ"))) {
    // ...
    f();
    g();
    // ...
}

I have a fast interrupt handler set up similarly as the example above and it's not working as intended. I used gdb to trace through the handler and I found that things are pushed to the stack during the f function call and are never popped out (similar for g). Then at the epilogue of the handler, the link register popped from the stack is wrong.


Viewing all articles
Browse latest Browse all 22001

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>