ISR switch hook - VxWorks

This is a discussion on ISR switch hook - VxWorks ; HI, Is there any ISr switch hook similsr to task switch hook in vxworks. Regards, Venkat...

+ Reply to Thread
Results 1 to 2 of 2

Thread: ISR switch hook

  1. ISR switch hook

    HI,

    Is there any ISr switch hook similsr to task switch hook in vxworks.

    Regards,
    Venkat


  2. Re: ISR switch hook

    No such thing exists.

    Since you can use intVecGet and intVecSet to modify the hander. For
    example, you can do a intVecGet to get the function pointer, save it.
    Create your own vector function which will call the saved one, after
    doing whatever you need to do. You can wrap the saved function with
    your own code, if you want.... but with caution, as the code runs at
    interrupt level and you probably do not want to do too much *after*
    calling the saved original function pointer.

    venkat wrote:
    > HI,
    >
    > Is there any ISr switch hook similsr to task switch hook in vxworks.
    >
    > Regards,
    > Venkat



+ Reply to Thread