Function Call inside IVOR4 Handler_MPC5777C

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Function Call inside IVOR4 Handler_MPC5777C

634 Views
afsar_mohammed
Contributor I

Hi,

Here is my question,

1. Can i do function call inside IVOR4 handler (Prologue and Epilogue ) in MPC5777C?  similar to this Machine_Check_Handler call ?

e_lis r0, Machine_check_handler@h
e_or2i r0, Machine_check_handler@l

mtlr r0 # Store LR

Idea is to calculate preemption time in External Interrupts, by adding Stop Watch start and End in Prologue and Epilogue section

if it is possible, share sample code which shows function calling in Prologue/Epilogue handler.

Any suggestion is highly appreciated

Thanks,

Afsar

Labels (1)
0 Kudos
1 Reply

565 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

you can jump to a function once necessary content is saved to stack. That means after execution of prologue and before jumping to ISR handler. That also means that if you call the function at beginning of an ISR and at the end, effect will be the same.

Regards,

Lukas

0 Kudos