How to unregister an Interrupt vector handler?

42 views
Skip to first unread message

Aravind Kumar Goud Kurra

unread,
May 29, 2024, 5:40:10 AMMay 29
to RISC-V SW Dev
Hi,

I'm using Sifive's E21 processor. I registered an interrupt vector handler using metal_interrupt_register_vector_handler() function provided by freedom e21_sdk. But, I want to unregister this handler after some time and register a new handler for the same interrupt pin. I don't find any function to unregister the existing handler in e21_sdk. Can someone help me understand how to do this? If any sequence is required or if I should write my own function to unregister?

Thanks and regards,
Aravind.

Kristof Kiekens

unread,
May 30, 2024, 2:15:00 AMMay 30
to RISC-V SW Dev, aravindku...@vconnectech.in
Replace it with a handler that doesn't do anything. An empty function.

Op woensdag 29 mei 2024 om 11:40:10 UTC+2 schreef aravindku...@vconnectech.in:

Aravind Kumar Goud Kurra

unread,
May 30, 2024, 2:27:26 AMMay 30
to Kristof Kiekens, RISC-V SW Dev
Do I need to disable it's associated interrupts before replacing the handler? Is there any specific set of actions that are to be performed like disabling the vector handler or the interrupt etc.,?
Reply all
Reply to author
Forward
0 new messages